Add finalizer to indicate volume snapshot is part of a group

This commit is contained in:
Raunak Pradip Shah
2023-12-06 16:16:30 -08:00
parent 0ce7955655
commit 875662b365
4 changed files with 32 additions and 21 deletions

View File

@@ -1114,6 +1114,9 @@ func (ctrl *csiSnapshotCommonController) processGroupSnapshotWithDeletionTimesta
for _, snapshotRef := range groupSnapshot.Status.VolumeSnapshotRefList {
snapshot, err := ctrl.snapshotLister.VolumeSnapshots(snapshotRef.Namespace).Get(snapshotRef.Name)
if err != nil {
if apierrs.IsNotFound(err) {
continue
}
return err
}
if ctrl.isVolumeBeingCreatedFromSnapshot(snapshot) {