Skip to content

Commit 4183faa

Browse files
authored
Merge pull request kubernetes-csi#1216 from leonardoce/fix-delete-group-snapshot
Prevent infinite loop deleting group snapshots
2 parents c5c0d15 + 847f8c3 commit 4183faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/common-controller/groupsnapshot_controller_helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func (ctrl *csiSnapshotCommonController) updateGroupSnapshot(ctx context.Context
262262

263263
// deleteGroupSnapshot runs in worker thread and handles "groupsnapshot deleted" event.
264264
func (ctrl *csiSnapshotCommonController) deleteGroupSnapshot(groupSnapshot *crdv1alpha1.VolumeGroupSnapshot) {
265-
_ = ctrl.snapshotStore.Delete(groupSnapshot)
265+
_ = ctrl.groupSnapshotStore.Delete(groupSnapshot)
266266
klog.V(4).Infof("group snapshot %q deleted", utils.GroupSnapshotKey(groupSnapshot))
267267

268268
driverName, err := ctrl.getGroupSnapshotDriverName(groupSnapshot)

0 commit comments

Comments
 (0)