Skip to content

Commit a355523

Browse files
authored
[fix] remove region check during volume attachment (#343)
* remove region check * Remove the comment
1 parent 872cf2d commit a355523

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/driver/controllerserver_helper.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -705,11 +705,6 @@ func (cs *ControllerServer) getAndValidateVolume(ctx context.Context, volumeID i
705705
return "", errVolumeAttached(volumeID, instance.ID)
706706
}
707707

708-
// check if the volume and instance are in the same region
709-
if instance.Region != volume.Region {
710-
return "", errRegionMismatch(volume.Region, instance.Region)
711-
}
712-
713708
log.V(4).Info("Volume validated and is not attached to instance", "volume_id", volume.ID, "node_id", instance.ID)
714709
return "", nil
715710
}

0 commit comments

Comments
 (0)