From 5afc6fd0d2d0caabfe0a7a2215808e8469de851b Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 6 Feb 2024 14:45:30 +0100 Subject: [PATCH] util: register group controller server Register group controller server if its initialized. Signed-off-by: Madhu Rajanna --- internal/csi-common/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/csi-common/server.go b/internal/csi-common/server.go index 13157f222..727ef57f8 100644 --- a/internal/csi-common/server.go +++ b/internal/csi-common/server.go @@ -45,6 +45,7 @@ type Servers struct { IS csi.IdentityServer CS csi.ControllerServer NS csi.NodeServer + GS csi.GroupControllerServer } // NewNonBlockingGRPCServer return non-blocking GRPC. @@ -109,6 +110,9 @@ func (s *nonBlockingGRPCServer) serve(endpoint string, srv Servers) { if srv.NS != nil { csi.RegisterNodeServer(server, srv.NS) } + if srv.GS != nil { + csi.RegisterGroupControllerServer(server, srv.GS) + } log.DefaultLog("Listening for connections on address: %#v", listener.Addr()) err = server.Serve(listener)