Skip to content

Commit 8eb4c73

Browse files
authored
fix: scaling backup is always deleting (#9424)
1 parent 074e66f commit 8eb4c73

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

controllers/dataprotection/backup_controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,7 @@ func (r *BackupReconciler) waitForBackupPodsDeleted(reqCtx intctrlutil.RequestCt
771771
func (r *BackupReconciler) deleteExternalResources(
772772
reqCtx intctrlutil.RequestCtx, backup *dpv1alpha1.Backup) error {
773773
labels := map[string]string{
774-
dptypes.BackupNameLabelKey: backup.Name,
775-
constant.AppManagedByLabelKey: dptypes.AppName,
774+
dptypes.BackupNameLabelKey: backup.Name,
776775
}
777776

778777
if clusterUID, ok := backup.Labels[dptypes.ClusterUIDLabelKey]; ok {

0 commit comments

Comments
 (0)