Event of missing SGBackupConfig is sent even if backup is working as expected
Summary
Warning event that say Missing SGBackupConfig for cluster <cluster namespace>.<cluster name>
is sent even if backup is working as expected.
Current Behaviour
A warning event is sent when SGBackupConfig is not used.
Steps to reproduce
- Create MinIO deployment
- Create an SGObjectStorage targeting MinIO
- Create an SGCluster with backups configuration targeting the created SGObjectStorage
Expected Behaviour
No warning event about missing SGBackupConfig is sent.
Possible Solution
Change the logic so that a warning event is sent about missing SGBackupConfig only if SGBackupConfig is in use or a warning event is sent about missing SGObjectStorage only if SGObjectStorage is in use.
Environment
- StackGres version: 1.3.0
- Kubernetes version: ?
- Cloud provider or hardware configuration: ?