From 525ff5d97fcc42961d6be090c2cc16db4a526d3e Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Thu, 10 Mar 2022 18:40:59 +0530 Subject: [PATCH] rbd: remove unimplemented responses for node operations These RPCs( nodestage,unstage,volumestats) are implemented RPCs for our drivers atm. This commit removes the `unimplemented` responses from the common/default server initialization routins. Signed-off-by: Humble Chirammal --- internal/csi-common/nodeserver-default.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/internal/csi-common/nodeserver-default.go b/internal/csi-common/nodeserver-default.go index fe848bdab..6a725995b 100644 --- a/internal/csi-common/nodeserver-default.go +++ b/internal/csi-common/nodeserver-default.go @@ -32,20 +32,6 @@ type DefaultNodeServer struct { Type string } -// NodeStageVolume returns unimplemented response. -func (ns *DefaultNodeServer) NodeStageVolume( - ctx context.Context, - req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error) { - return nil, status.Error(codes.Unimplemented, "") -} - -// NodeUnstageVolume returns unimplemented response. -func (ns *DefaultNodeServer) NodeUnstageVolume( - ctx context.Context, - req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error) { - return nil, status.Error(codes.Unimplemented, "") -} - // NodeExpandVolume returns unimplemented response. func (ns *DefaultNodeServer) NodeExpandVolume( ctx context.Context, @@ -88,13 +74,6 @@ func (ns *DefaultNodeServer) NodeGetCapabilities( }, nil } -// NodeGetVolumeStats returns volume stats. -func (ns *DefaultNodeServer) NodeGetVolumeStats( - ctx context.Context, - req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error) { - return nil, status.Error(codes.Unimplemented, "") -} - // ConstructMountOptions returns only unique mount options in slice. func ConstructMountOptions(mountOptions []string, volCap *csi.VolumeCapability) []string { if m := volCap.GetMount(); m != nil {