File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ func NewCSISnapshotSideCarController(
120120 // VolumeSnapshotContent.
121121 // This will trigger a VolumeSnapshotContent update and it will cause the obj to be re-queued immediately
122122 // 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.
123125 // So we are skipping the re-queue here to avoid CreateSnapshot being called without exponential backoff.
124126 newSnapContent := newObj .(* crdv1.VolumeSnapshotContent )
125127 if newSnapContent .Status != nil && newSnapContent .Status .Error != nil {
You can’t perform that action at this time.
0 commit comments