cephfs: set access mode to MULTI_NODE_MULTI_WRITER; controller (un)publish is not needed

This commit is contained in:
gman 2018-03-07 14:11:54 +01:00
parent 1c1b0eab1e
commit aa023ea405
3 changed files with 2 additions and 11 deletions

View File

@ -4,7 +4,7 @@ metadata:
name: cephfs-pvc
spec:
accessModes:
- ReadWriteOnce
- ReadWriteMany
resources:
requests:
storage: 5Gi

View File

@ -85,11 +85,10 @@ func (fs *cephfsDriver) Run(driverName, nodeId, endpoint string) {
fs.driver.AddControllerServiceCapabilities([]csi.ControllerServiceCapability_RPC_Type{
csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME,
csi.ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME,
})
fs.driver.AddVolumeCapabilityAccessModes([]csi.VolumeCapability_AccessMode_Mode{
csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER,
csi.VolumeCapability_AccessMode_MULTI_NODE_MULTI_WRITER,
})
// Create gRPC servers

View File

@ -148,11 +148,3 @@ func (cs *controllerServer) ValidateVolumeCapabilities(ctx context.Context, req
res.Supported = true
return res, nil
}
func (cs *controllerServer) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error) {
return &csi.ControllerPublishVolumeResponse{}, nil
}
func (cs *controllerServer) ControllerUnpublishVolume(ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error) {
return &csi.ControllerUnpublishVolumeResponse{}, nil
}