From 684a06861fdb155781c9c6ed16844920019dd055 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Thu, 28 Jun 2018 13:49:13 -0700 Subject: [PATCH] Rancher cloudprovider changes to accomodate k8s 1.11 --- pkg/cloudprovider/providers/rancher/rancher.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/cloudprovider/providers/rancher/rancher.go b/pkg/cloudprovider/providers/rancher/rancher.go index e1713ff863fa2..8532dc851bec2 100644 --- a/pkg/cloudprovider/providers/rancher/rancher.go +++ b/pkg/cloudprovider/providers/rancher/rancher.go @@ -101,6 +101,11 @@ func (c *CloudProvider) InstanceExistsByProviderID(pctx context.Context, rovider return false, errors.New("InstanceExistsByProviderID not imeplemented") } +// InstanceShutdownByProviderID returns true if the instance is in safe state to detach volumes +func (c *CloudProvider) InstanceShutdownByProviderID(ctx context.Context, providerID string) (bool, error) { + return false, cloudprovider.NotImplemented +} + // Clusters not supported func (r *CloudProvider) Clusters() (cloudprovider.Clusters, bool) { return nil, false