Skip to content

Commit aa2bc2f

Browse files
committed
Remove the unnecessary driver name check
1 parent 4c38cc8 commit aa2bc2f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/sidecar-controller/snapshot_controller.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,6 @@ func (ctrl *csiSnapshotSideCarController) createSnapshotOperation(content *crdv1
349349

350350
return nil, fmt.Errorf("failed to take snapshot of the volume, %s: %q", *content.Spec.Source.VolumeHandle, err)
351351
}
352-
if driverName != class.Driver {
353-
return nil, fmt.Errorf("failed to take snapshot of the volume, %s: driver name %s returned from the driver is different from driver %s in snapshot class", *content.Spec.Source.VolumeHandle, driverName, class.Driver)
354-
}
355352

356353
klog.V(5).Infof("Created snapshot: driver %s, snapshotId %s, creationTime %v, size %d, readyToUse %t", driverName, snapshotID, creationTime, size, readyToUse)
357354

0 commit comments

Comments
 (0)