external-snapshotter constantly retrying CreateSnapshot calls on error w/o backoff

This commit is contained in:
Sameer Shaikh
2023-06-28 18:32:07 +05:30
parent a8c9b7b644
commit ffaba0f81d

View File

@@ -123,7 +123,7 @@ func NewCSISnapshotSideCarController(
// So we are skipping the re-queue here to avoid CreateSnapshot being called without exponential backoff.
newSnapContent := newObj.(*crdv1.VolumeSnapshotContent)
if newSnapContent.Status != nil && newSnapContent.Status.Error != nil {
return
return
}
ctrl.enqueueContentWork(newObj)
},