Backup are marked completed when they are not
Summary
Backup are marked completed when they are not.
Current Behaviour
The backup has the Completed
status but no information about the backup name and other related properties are present:
apiVersion: stackgres.io/v1
kind: SGBackup
status:
backupPath: sgbackups.stackgres.io/test/test/14
process:
jobPod: bk2022-10-17-17-10-58-backup-8542j
status: Completed
sgBackupConfig:
baseBackups:
compression: lz4
storage:
s3Compatible:
awsCredentials:
secretKeySelectors:
accessKeyId:
key: accessKey
name: test-backup-credentials
secretAccessKey:
key: secretKey
name: test-backup-credentials
bucket: 4amlunch-db-backups
enablePathStyleAddressing: true
endpoint: https://minio
region: k8s
type: s3Compatible
Steps to reproduce
- Create a SGCluster with backup configuration
- Create a SGBackup
- While the backup is running and is executing the remote backup with wal-g change StackGres operator deployment to have 0 replicas
- Wait for the Job to complete
- Change StackGres operator deployment to have 1 replicas
Expected Behaviour
The backup has the Completed
status and all the information about the backup name and other related properties must be present.
Environment
- StackGres version: 1.3.2 (but probably this affects also previous versions)
- Kubernetes version: ?
- Cloud provider or hardware configuration: ?
Edited by Matteo Melli