From aa2bc2fb9c2752ade87a8a078bfa4dac9deb82c5 Mon Sep 17 00:00:00 2001 From: xing-yang Date: Thu, 5 Mar 2020 21:55:57 +0000 Subject: [PATCH] Remove the unnecessary driver name check --- pkg/sidecar-controller/snapshot_controller.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/sidecar-controller/snapshot_controller.go b/pkg/sidecar-controller/snapshot_controller.go index 66c4ebff..481c187e 100644 --- a/pkg/sidecar-controller/snapshot_controller.go +++ b/pkg/sidecar-controller/snapshot_controller.go @@ -349,9 +349,6 @@ func (ctrl *csiSnapshotSideCarController) createSnapshotOperation(content *crdv1 return nil, fmt.Errorf("failed to take snapshot of the volume, %s: %q", *content.Spec.Source.VolumeHandle, err) } - if driverName != class.Driver { - 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) - } klog.V(5).Infof("Created snapshot: driver %s, snapshotId %s, creationTime %v, size %d, readyToUse %t", driverName, snapshotID, creationTime, size, readyToUse)