Skip to content

Commit

Permalink
chore(backup): clarify deletion log message
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Weber <eric.weber@suse.com>
(cherry picked from commit 00053f1)
  • Loading branch information
ejweber authored and mergify[bot] committed Jul 24, 2024
1 parent 941234e commit e9bf3f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controller/backup_target_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ func (btc *BackupTargetController) syncBackupVolume(backupStoreBackupVolumeNames
// and delete the BackupVolume CR in the cluster
backupVolumesToDelete := clusterBackupVolumesSet.Difference(backupStoreBackupVolumes)
if count := backupVolumesToDelete.Len(); count > 0 {
log.Infof("Found %d backup volumes in the backup target that do not exist in the backup target and need to be deleted", count)
log.Infof("Found %d backup volumes in the backup target that do not exist in the cluster and need to be deleted from the cluster", count)
}
for backupVolumeName := range backupVolumesToDelete {
log.WithField("backupVolume", backupVolumeName).Info("Deleting backup volume from cluster")
Expand Down
2 changes: 1 addition & 1 deletion controller/backup_volume_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ func (bvc *BackupVolumeController) reconcile(backupVolumeName string) (err error
// and delete the Backup CR in the cluster
backupsToDelete := clustersSet.Difference(backupStoreBackups)
if count := backupsToDelete.Len(); count > 0 {
log.Infof("Found %d backups in the backup target that do not exist in the backup target and need to be deleted", count)
log.Infof("Found %d backups in the backup target that do not exist in the cluster and need to be deleted from the cluster", count)
}
for backupName := range backupsToDelete {
if err = bvc.ds.DeleteBackup(backupName); err != nil {
Expand Down

0 comments on commit e9bf3f7

Please sign in to comment.