diff --git a/internal/controller/mantlebackup_controller.go b/internal/controller/mantlebackup_controller.go index 49966b37..e6eaf881 100644 --- a/internal/controller/mantlebackup_controller.go +++ b/internal/controller/mantlebackup_controller.go @@ -434,7 +434,7 @@ func (r *MantleBackupReconciler) replicate( // Call CreateOrUpdatePVC client := r.primarySettings.Client - respPVC, err := client.CreateOrUpdatePVC( + resp, err := client.CreateOrUpdatePVC( ctx, &proto.CreateOrUpdatePVCRequest{ Pvc: string(pvcSentJson), @@ -452,7 +452,7 @@ func (r *MantleBackupReconciler) replicate( annotRemoteUID: string(backup.GetUID()), }) backupSent.SetLabels(map[string]string{ - labelLocalBackupTargetPVCUID: respPVC.Uid, + labelLocalBackupTargetPVCUID: resp.Uid, labelRemoteBackupTargetPVCUID: string(pvc.GetUID()), }) backupSent.SetFinalizers([]string{finalizerMantleBackup})