Skip to content

Commit f688d7b

Browse files
committed
Remove error status check
1 parent 2295e6a commit f688d7b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/sidecar-controller/snapshot_controller.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -304,14 +304,6 @@ func (ctrl *csiSnapshotSideCarController) checkandUpdateContentStatusOperation(c
304304
func (ctrl *csiSnapshotSideCarController) createSnapshotWrapper(content *crdv1.VolumeSnapshotContent) (*crdv1.VolumeSnapshotContent, error) {
305305
klog.Infof("createSnapshotWrapper: Creating snapshot for content %s through the plugin ...", content.Name)
306306

307-
// content.Status will be created for the first time after a snapshot
308-
// is created by the CSI driver. If content.Status is not nil,
309-
// we should update content status without creating snapshot again.
310-
if content.Status != nil && content.Status.Error != nil && content.Status.Error.Message != nil && !isControllerUpdateFailError(content.Status.Error) {
311-
klog.V(4).Infof("error is already set in snapshot, do not retry to create: %s", *content.Status.Error.Message)
312-
return content, nil
313-
}
314-
315307
class, snapshotterCredentials, err := ctrl.getCSISnapshotInput(content)
316308
if err != nil {
317309
return nil, fmt.Errorf("failed to get input parameters to create snapshot for content %s: %q", content.Name, err)

0 commit comments

Comments
 (0)