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
13151315 // A bound finalizer is needed ONLY when all following conditions are satisfied:
13161316 // 1. the VolumeGroupSnapshot is bound to a VolumeGroupSnapshotContent
13171317 // 2. the VolumeGroupSnapshot does not have deletion timestamp set
1318- // 3. the matching VolumeGroupSnapshotContent has a deletion policy to be Delete
13191318 // 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 ) {
13211320 // Snapshot is not being deleted -> it should have the finalizer.
13221321 klog .V (5 ).Infof ("checkandAddGroupSnapshotFinalizers: Add Finalizer for VolumeGroupSnapshot[%s]" , utils .GroupSnapshotKey (groupSnapshot ))
13231322 return ctrl .addGroupSnapshotFinalizer (groupSnapshot , true )
You can’t perform that action at this time.
0 commit comments