File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1315,9 +1315,8 @@ func (ctrl *csiSnapshotCommonController) checkandAddGroupSnapshotFinalizers(grou
1315
1315
// A bound finalizer is needed ONLY when all following conditions are satisfied:
1316
1316
// 1. the VolumeGroupSnapshot is bound to a VolumeGroupSnapshotContent
1317
1317
// 2. the VolumeGroupSnapshot does not have deletion timestamp set
1318
- // 3. the matching VolumeGroupSnapshotContent has a deletion policy to be Delete
1319
1318
// Note that if a matching VolumeGroupSnapshotContent is found, it must point back to the VolumeGroupSnapshot
1320
- if groupSnapshotContent != nil && utils .NeedToAddGroupSnapshotBoundFinalizer (groupSnapshot ) && ( groupSnapshotContent . Spec . DeletionPolicy == crdv1 . VolumeSnapshotContentDelete ) {
1319
+ if groupSnapshotContent != nil && utils .NeedToAddGroupSnapshotBoundFinalizer (groupSnapshot ) {
1321
1320
// Snapshot is not being deleted -> it should have the finalizer.
1322
1321
klog .V (5 ).Infof ("checkandAddGroupSnapshotFinalizers: Add Finalizer for VolumeGroupSnapshot[%s]" , utils .GroupSnapshotKey (groupSnapshot ))
1323
1322
return ctrl .addGroupSnapshotFinalizer (groupSnapshot , true )
You can’t perform that action at this time.
0 commit comments