From e9bf3f79bd6b7147d1e44c1e2ac040c93dc985a4 Mon Sep 17 00:00:00 2001 From: Eric Weber Date: Wed, 24 Jul 2024 10:01:08 -0500 Subject: [PATCH] chore(backup): clarify deletion log message Signed-off-by: Eric Weber (cherry picked from commit 00053f15e98c7a355772b780a885d423b6a78ca3) --- controller/backup_target_controller.go | 2 +- controller/backup_volume_controller.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/backup_target_controller.go b/controller/backup_target_controller.go index 22972c2303..b3f73af759 100644 --- a/controller/backup_target_controller.go +++ b/controller/backup_target_controller.go @@ -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") diff --git a/controller/backup_volume_controller.go b/controller/backup_volume_controller.go index d39d64f136..cf64b39152 100644 --- a/controller/backup_volume_controller.go +++ b/controller/backup_volume_controller.go @@ -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 {