@@ -40,11 +40,11 @@ type nonBlockingGRPCServer struct {
40
40
cleanup func ()
41
41
}
42
42
43
- func (s * nonBlockingGRPCServer ) Start (endpoint string , ids csi.IdentityServer , cs csi.ControllerServer , ns csi.NodeServer ) {
43
+ func (s * nonBlockingGRPCServer ) Start (endpoint string , ids csi.IdentityServer , cs csi.ControllerServer , ns csi.NodeServer , gcs csi. GroupControllerServer ) {
44
44
45
45
s .wg .Add (1 )
46
46
47
- go s .serve (endpoint , ids , cs , ns )
47
+ go s .serve (endpoint , ids , cs , ns , gcs )
48
48
49
49
return
50
50
}
@@ -63,7 +63,7 @@ func (s *nonBlockingGRPCServer) ForceStop() {
63
63
s .cleanup ()
64
64
}
65
65
66
- func (s * nonBlockingGRPCServer ) serve (ep string , ids csi.IdentityServer , cs csi.ControllerServer , ns csi.NodeServer ) {
66
+ func (s * nonBlockingGRPCServer ) serve (ep string , ids csi.IdentityServer , cs csi.ControllerServer , ns csi.NodeServer , gcs csi. GroupControllerServer ) {
67
67
listener , cleanup , err := endpoint .Listen (ep )
68
68
if err != nil {
69
69
glog .Fatalf ("Failed to listen: %v" , err )
@@ -85,6 +85,9 @@ func (s *nonBlockingGRPCServer) serve(ep string, ids csi.IdentityServer, cs csi.
85
85
if ns != nil {
86
86
csi .RegisterNodeServer (server , ns )
87
87
}
88
+ if gcs != nil {
89
+ csi .RegisterGroupControllerServer (server , gcs )
90
+ }
88
91
89
92
glog .Infof ("Listening for connections on address: %#v" , listener .Addr ())
90
93
0 commit comments