Skip to content

Commit 98939c0

Browse files
committed
external-snapshotter constantly retrying CreateSnapshot calls on error w/o backoff
Signed-off-by: Sameer Shaikh <[email protected]>
1 parent dd523a0 commit 98939c0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/sidecar-controller/snapshot_controller_base.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,7 @@ func NewCSISnapshotSideCarController(
124124
// So we are skipping the re-queue here to avoid CreateSnapshot being called without exponential backoff.
125125
newSnapContent := newObj.(*crdv1.VolumeSnapshotContent)
126126
if newSnapContent.Status != nil && newSnapContent.Status.Error != nil {
127-
oldSnapContent := oldObj.(*crdv1.VolumeSnapshotContent)
128-
_, newExists := newSnapContent.ObjectMeta.Annotations[utils.AnnVolumeSnapshotBeingCreated]
129-
_, oldExists := oldSnapContent.ObjectMeta.Annotations[utils.AnnVolumeSnapshotBeingCreated]
130-
if !newExists && oldExists {
131127
return
132-
}
133128
}
134129
ctrl.enqueueContentWork(newObj)
135130
},

0 commit comments

Comments
 (0)