Skip to content

Commit 48337d9

Browse files
committed
Add comments describing unimplemented server fields
1 parent 703e374 commit 48337d9

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

pkg/gce-pd-csi-driver/controller.go

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ type GCEControllerServer struct {
109109

110110
listVolumesConfig ListVolumesConfig
111111

112+
// Embed UnimplementedControllerServer to ensure the driver returns Unimplemented for any
113+
// new RPC methods that might be introduced in future versions of the spec.
112114
csi.UnimplementedControllerServer
113115
}
114116

pkg/gce-pd-csi-driver/identity.go

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import (
2525
type GCEIdentityServer struct {
2626
Driver *GCEDriver
2727

28+
// Embed UnimplementedIdentityServer to ensure the driver returns Unimplemented for any
29+
// new RPC methods that might be introduced in future versions of the spec.
2830
csi.UnimplementedIdentityServer
2931
}
3032

pkg/gce-pd-csi-driver/node.go

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ type GCENodeServer struct {
6060
formatAndMountSemaphore chan any
6161
formatAndMountTimeout time.Duration
6262

63+
// Embed UnimplementedNodeServer to ensure the driver returns Unimplemented for any
64+
// new RPC methods that might be introduced in future versions of the spec.
6365
csi.UnimplementedNodeServer
6466
}
6567

0 commit comments

Comments
 (0)