util: add UnimplementedControllerServer to default

Add UnimplementedControllerServer to the default
implementation to avoid missing method
error.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2023-10-19 09:41:17 +02:00 committed by mergify[bot]
parent 3a61f24c1d
commit e5d2d3eeb4
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ import (
// DefaultControllerServer points to default driver. // DefaultControllerServer points to default driver.
type DefaultControllerServer struct { type DefaultControllerServer struct {
Driver *CSIDriver Driver *CSIDriver
csi.UnimplementedControllerServer
} }
// ControllerPublishVolume publish volume on node. // ControllerPublishVolume publish volume on node.

View File

@ -29,6 +29,7 @@ import (
// DefaultIdentityServer stores driver object. // DefaultIdentityServer stores driver object.
type DefaultIdentityServer struct { type DefaultIdentityServer struct {
Driver *CSIDriver Driver *CSIDriver
csi.UnimplementedControllerServer
} }
// GetPluginInfo returns plugin information. // GetPluginInfo returns plugin information.