From e1dcd15f015e5dadd123982b8f6d51f1f3b99c26 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 3 Apr 2022 01:07:08 -0700 Subject: support expand volume --- pkg/driver/identityserver.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'pkg/driver/identityserver.go') diff --git a/pkg/driver/identityserver.go b/pkg/driver/identityserver.go index 7d0fab7..55ce934 100644 --- a/pkg/driver/identityserver.go +++ b/pkg/driver/identityserver.go @@ -1,8 +1,8 @@ package driver import ( - "github.com/container-storage-interface/spec/lib/go/csi" "github.com/chrislusf/seaweedfs/weed/glog" + "github.com/container-storage-interface/spec/lib/go/csi" "golang.org/x/net/context" ) @@ -35,15 +35,13 @@ func (ids *IdentityServer) GetPluginCapabilities(ctx context.Context, req *csi.G }, }, }, - /* // TODO add later - { - Type: &csi.PluginCapability_VolumeExpansion_{ - VolumeExpansion: &csi.PluginCapability_VolumeExpansion{ - Type: csi.PluginCapability_VolumeExpansion_ONLINE, - }, + { + Type: &csi.PluginCapability_VolumeExpansion_{ + VolumeExpansion: &csi.PluginCapability_VolumeExpansion{ + Type: csi.PluginCapability_VolumeExpansion_ONLINE, }, }, - */ + }, }, }, nil } -- cgit v1.2.3