From 16cc4ef823b90fdcd8fb774d72b2bdf2b258c4de Mon Sep 17 00:00:00 2001 From: gongguan Date: Thu, 17 Sep 2020 10:31:10 +0800 Subject: [PATCH] enable gce InstancesV2 --- staging/src/k8s.io/legacy-cloud-providers/gce/gce.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/legacy-cloud-providers/gce/gce.go b/staging/src/k8s.io/legacy-cloud-providers/gce/gce.go index 61d30b5b8e0..b183afd3ba3 100644 --- a/staging/src/k8s.io/legacy-cloud-providers/gce/gce.go +++ b/staging/src/k8s.io/legacy-cloud-providers/gce/gce.go @@ -660,9 +660,9 @@ func (g *Cloud) Instances() (cloudprovider.Instances, bool) { } // InstancesV2 returns an implementation of InstancesV2 for Google Compute Engine. -// TODO: implement ONLY for external cloud provider +// Implement ONLY for external cloud provider func (g *Cloud) InstancesV2() (cloudprovider.InstancesV2, bool) { - return nil, false + return g, true } // Zones returns an implementation of Zones for Google Compute Engine.