Merge pull request #6543 from Lyndon-Li/release-1.11

[release-1.11] Fix issue 6534
This commit is contained in:
lyndon
2023-07-25 18:44:23 +08:00
committed by GitHub
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
Fix issue #6534, reset PVB CR's StorageLocation to the latest one during backup sync as same as the backup CR
+1
View File
@@ -209,6 +209,7 @@ func (b *backupSyncReconciler) Reconcile(ctx context.Context, req ctrl.Request)
podVolumeBackup.Namespace = backup.Namespace
podVolumeBackup.ResourceVersion = ""
podVolumeBackup.Spec.BackupStorageLocation = location.Name
err = b.client.Create(ctx, podVolumeBackup, &client.CreateOptions{})
switch {