Oops, of course it should be RWM

This commit is contained in:
Vitaliy Filippov 2021-09-14 13:36:35 +03:00
parent 2918533ec0
commit 7b422cfcbb
2 changed files with 2 additions and 3 deletions

View file

@ -170,9 +170,8 @@ func (cs *controllerServer) ValidateVolumeCapabilities(ctx context.Context, req
return nil, status.Error(codes.NotFound, fmt.Sprintf("bucket of volume with id %s does not exist", req.GetVolumeId())) return nil, status.Error(codes.NotFound, fmt.Sprintf("bucket of volume with id %s does not exist", req.GetVolumeId()))
} }
// We currently only support RWO
supportedAccessMode := &csi.VolumeCapability_AccessMode{ supportedAccessMode := &csi.VolumeCapability_AccessMode{
Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, Mode: csi.VolumeCapability_AccessMode_MULTI_NODE_MULTI_WRITER,
} }
for _, capability := range req.VolumeCapabilities { for _, capability := range req.VolumeCapabilities {

View file

@ -75,7 +75,7 @@ func (s3 *driver) Run() {
// Initialize default library driver // Initialize default library driver
s3.driver.AddControllerServiceCapabilities([]csi.ControllerServiceCapability_RPC_Type{csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME}) s3.driver.AddControllerServiceCapabilities([]csi.ControllerServiceCapability_RPC_Type{csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME})
s3.driver.AddVolumeCapabilityAccessModes([]csi.VolumeCapability_AccessMode_Mode{csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER}) s3.driver.AddVolumeCapabilityAccessModes([]csi.VolumeCapability_AccessMode_Mode{csi.VolumeCapability_AccessMode_MULTI_NODE_MULTI_WRITER})
// Create GRPC servers // Create GRPC servers
s3.ids = s3.newIdentityServer(s3.driver) s3.ids = s3.newIdentityServer(s3.driver)