From e68ec1f4d69b68e416592cfca744ec0ce5cf9c12 Mon Sep 17 00:00:00 2001 From: Huweicai Date: Sat, 27 Aug 2022 22:32:58 +0800 Subject: [PATCH] feat: update csi specification from v1.1.0 to v1.5.0 Signed-off-by: Huweicai --- go.mod | 2 +- go.sum | 3 ++- pkg/csi-common/controllerserver_default.go | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 9ad7dc77..43c44905 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/cubefs/cubefs-csi go 1.18 require ( - github.com/container-storage-interface/spec v1.1.0 + github.com/container-storage-interface/spec v1.5.0 github.com/golang/glog v1.0.0 github.com/kubernetes-csi/csi-lib-utils v0.7.0 github.com/spf13/cobra v1.5.0 diff --git a/go.sum b/go.sum index 4275d21d..57ee4618 100644 --- a/go.sum +++ b/go.sum @@ -45,8 +45,9 @@ github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5P github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/container-storage-interface/spec v1.1.0 h1:qPsTqtR1VUPvMPeK0UnCZMtXaKGyyLPG8gj/wG6VqMs= github.com/container-storage-interface/spec v1.1.0/go.mod h1:6URME8mwIBbpVyZV93Ce5St17xBiQJQY67NDsuohiy4= +github.com/container-storage-interface/spec v1.5.0 h1:lvKxe3uLgqQeVQcrnL2CPQKISoKjTJxojEs9cBk+HXo= +github.com/container-storage-interface/spec v1.5.0/go.mod h1:8K96oQNkJ7pFcC2R9Z1ynGGBB1I93kcS6PGg3SsOk8s= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/pkg/csi-common/controllerserver_default.go b/pkg/csi-common/controllerserver_default.go index 2bebaacf..23c04eda 100644 --- a/pkg/csi-common/controllerserver_default.go +++ b/pkg/csi-common/controllerserver_default.go @@ -78,3 +78,8 @@ func (cs *DefaultControllerServer) ListSnapshots(ctx context.Context, req *csi.L func (cs *DefaultControllerServer) ControllerExpandVolume(context.Context, *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error) { return nil, status.Error(codes.Unimplemented, "Unimplemented") } + +// ControllerGetVolume is still an alpha feature, we do not support it now +func (cs *DefaultControllerServer) ControllerGetVolume(ctx context.Context, request *csi.ControllerGetVolumeRequest) (*csi.ControllerGetVolumeResponse, error) { + return nil, status.Error(codes.Unimplemented, "Unimplemented") +}