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 <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2022-03-10 15:41:29 +05:30 committed by mergify[bot]
parent 1b16db4ff6
commit 66e7f3525f

View File

@ -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,