Merge pull request #7046 from kaovilai/backup-patch-status-unittest

Update Backup.Status.CSIVolumeSnapshotsCompleted during finalize
This commit is contained in:
Wenkai Yin(尹文开)
2023-11-15 15:32:51 +08:00
committed by GitHub
12 changed files with 261 additions and 70 deletions

View File

@@ -776,7 +776,6 @@ func (s *server) runControllers(defaultVolumeSnapshotLocations map[string]string
backupStoreGetter,
s.config.formatFlag.Parse(),
s.csiSnapshotLister,
s.csiSnapshotClient,
s.credentialFileStore,
s.config.maxConcurrentK8SConnections,
s.config.defaultSnapshotMoveData,
@@ -838,6 +837,7 @@ func (s *server) runControllers(defaultVolumeSnapshotLocations map[string]string
cmd.CheckError(err)
r := controller.NewBackupFinalizerReconciler(
s.mgr.GetClient(),
s.csiSnapshotLister,
clock.RealClock{},
backupper,
newPluginManager,