From 66e7f3525f9a6187927ba9f04b8377f3eb71bb8e Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Thu, 10 Mar 2022 15:41:29 +0530 Subject: [PATCH] cleanup: remove unimplemented controller expand,snapshot RPCs These RPCs ( controller expand, create and delete snapshots) are no longer unimplmented and we dont have to declare these as with `unimplemented` states. This commit remove the same. Signed-off-by: Humble Chirammal --- .../csi-common/controllerserver-default.go | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/internal/csi-common/controllerserver-default.go b/internal/csi-common/controllerserver-default.go index 96b005989..3daa31ca7 100644 --- a/internal/csi-common/controllerserver-default.go +++ b/internal/csi-common/controllerserver-default.go @@ -45,13 +45,6 @@ func (cs *DefaultControllerServer) ControllerUnpublishVolume( return nil, status.Error(codes.Unimplemented, "") } -// ControllerExpandVolume expand volume. -func (cs *DefaultControllerServer) ControllerExpandVolume( - ctx context.Context, - req *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error) { - return nil, status.Error(codes.Unimplemented, "") -} - // ListVolumes lists volumes. func (cs *DefaultControllerServer) ListVolumes( ctx context.Context, @@ -81,20 +74,6 @@ func (cs *DefaultControllerServer) ControllerGetCapabilities( }, nil } -// CreateSnapshot creates snapshot. -func (cs *DefaultControllerServer) CreateSnapshot( - ctx context.Context, - req *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error) { - return nil, status.Error(codes.Unimplemented, "") -} - -// DeleteSnapshot deletes snapshot. -func (cs *DefaultControllerServer) DeleteSnapshot( - ctx context.Context, - req *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error) { - return nil, status.Error(codes.Unimplemented, "") -} - // ListSnapshots lists snapshots. func (cs *DefaultControllerServer) ListSnapshots( ctx context.Context,