From 8c53b5eb79611a8de677ade185d6987d687cab1f Mon Sep 17 00:00:00 2001 From: gman Date: Tue, 12 Jun 2018 17:09:44 +0200 Subject: [PATCH] cephfs: Identity Service advertises PluginCapability_Service_CONTROLLER_SERVICE --- pkg/cephfs/identityserver.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkg/cephfs/identityserver.go b/pkg/cephfs/identityserver.go index 65a58e8e2..8c1f7371e 100644 --- a/pkg/cephfs/identityserver.go +++ b/pkg/cephfs/identityserver.go @@ -17,9 +17,26 @@ limitations under the License. package cephfs import ( + "context" + + "github.com/container-storage-interface/spec/lib/go/csi/v0" "github.com/kubernetes-csi/drivers/pkg/csi-common" ) type identityServer struct { *csicommon.DefaultIdentityServer } + +func (is *identityServer) GetPluginCapabilities(ctx context.Context, req *csi.GetPluginCapabilitiesRequest) (*csi.GetPluginCapabilitiesResponse, error) { + return &csi.GetPluginCapabilitiesResponse{ + Capabilities: []*csi.PluginCapability{ + { + Type: &csi.PluginCapability_Service_{ + Service: &csi.PluginCapability_Service{ + Type: csi.PluginCapability_Service_CONTROLLER_SERVICE, + }, + }, + }, + }, + }, nil +}