Skip to content

Commit

Permalink
fixup! support replication of PVC and MantleBackup resources
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou committed Sep 12, 2024
1 parent 94ed8b0 commit f0ad64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/mantlebackup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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})
Expand Down

0 comments on commit f0ad64a

Please sign in to comment.