diff --git a/pkg/csi/cinder/openstack/noop_openstack.go b/pkg/csi/cinder/openstack/noop_openstack.go index cac64a9048..3cdf5faa39 100644 --- a/pkg/csi/cinder/openstack/noop_openstack.go +++ b/pkg/csi/cinder/openstack/noop_openstack.go @@ -23,6 +23,7 @@ import ( "github.com/gophercloud/gophercloud/openstack/blockstorage/v3/snapshots" "github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumes" "github.com/gophercloud/gophercloud/openstack/compute/v2/servers" + "k8s.io/apimachinery/pkg/util/wait" "k8s.io/cloud-provider-openstack/pkg/util/metadata" ) @@ -31,6 +32,8 @@ type NoopOpenStack struct { metadataOpts metadata.Opts } +var _ IOpenStack = &NoopOpenStack{} + func (os *NoopOpenStack) CreateVolume(name string, size int, vtype, availability string, snapshotID string, sourceVolID string, sourceBackupID string, tags map[string]string) (*volumes.Volume, error) { return nil, fmt.Errorf("CreateVolume is not implemented for ephemeral storage in this configuration") } @@ -63,6 +66,10 @@ func (os *NoopOpenStack) WaitVolumeTargetStatus(volumeID string, tStatus []strin return nil } +func (os *NoopOpenStack) WaitVolumeTargetStatusWithCustomBackoff(volumeID string, tStatus []string, backoff *wait.Backoff) error { + return nil +} + func (os *NoopOpenStack) DetachVolume(instanceID, volumeID string) error { return nil }