diff --git a/pkg/rbd/controllerserver.go b/pkg/rbd/controllerserver.go index 27c407fdf..1b8eb5ac7 100644 --- a/pkg/rbd/controllerserver.go +++ b/pkg/rbd/controllerserver.go @@ -364,16 +364,6 @@ func (cs *ControllerServer) ValidateVolumeCapabilities(ctx context.Context, req }, nil } -// ControllerUnpublishVolume returns success response -func (cs *ControllerServer) ControllerUnpublishVolume(ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error) { - return &csi.ControllerUnpublishVolumeResponse{}, nil -} - -// ControllerPublishVolume returns success response -func (cs *ControllerServer) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error) { - return &csi.ControllerPublishVolumeResponse{}, nil -} - // CreateSnapshot creates the snapshot in backend and stores metadata // in store // nolint: gocyclo diff --git a/pkg/rbd/rbd.go b/pkg/rbd/rbd.go index bcd5c6c90..684dc5f15 100644 --- a/pkg/rbd/rbd.go +++ b/pkg/rbd/rbd.go @@ -106,7 +106,6 @@ func (r *Driver) Run(driverName, nodeID, endpoint, configRoot string, containeri } r.cd.AddControllerServiceCapabilities([]csi.ControllerServiceCapability_RPC_Type{ csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME, - csi.ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME, csi.ControllerServiceCapability_RPC_LIST_VOLUMES, csi.ControllerServiceCapability_RPC_CREATE_DELETE_SNAPSHOT, csi.ControllerServiceCapability_RPC_LIST_SNAPSHOTS,