File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -115,14 +115,9 @@ func NewCSISnapshotSideCarController(
115
115
cache.ResourceEventHandlerFuncs {
116
116
AddFunc : func (obj interface {}) { ctrl .enqueueContentWork (obj ) },
117
117
UpdateFunc : func (oldObj , newObj interface {}) {
118
- // If the CSI driver fails to create a snapshot and returns a failure (indicated by content.Status.Error), the
119
- // CSI Snapshotter sidecar will remove the "AnnVolumeSnapshotBeingCreated" annotation from the
120
- // VolumeSnapshotContent.
121
- // This will trigger a VolumeSnapshotContent update and it will cause the obj to be re-queued immediately
122
- // and CSI CreateSnapshot will be called again without exponential backoff.
123
- // Considering the object is modified more than once during the workflow we are not relying on the annoations of oldobj and newobj.
124
- // We will just check if newobj status has error and avoid re-queue.
125
- // So we are skipping the re-queue here to avoid CreateSnapshot being called without exponential backoff.
118
+ // Considering the object is modified more than once during the workflow we are not relying on the
119
+ // "AnnVolumeSnapshotBeingCreated" annotation. Instead we will just check if newobj status has error
120
+ // and avoid the immediate re-queue. This allows the retry to happen with exponential backoff.
126
121
newSnapContent := newObj .(* crdv1.VolumeSnapshotContent )
127
122
if newSnapContent .Status != nil && newSnapContent .Status .Error != nil {
128
123
return
You can’t perform that action at this time.
0 commit comments