k3s/pkg/cloudprovider/providers/gce
Kubernetes Submit Queue 6f7eac63c2 Merge pull request #46315 from wongma7/gcepdalready
Automatic merge from submit-queue (batch tested with PRs 38505, 41785, 46315)

Fix provisioned GCE PD not being reused if already exists

@jsafrane PTAL 

This is another attempt at https://github.com/kubernetes/kubernetes/pull/38702 . We have observed that `gce.service.Disks.Insert(gce.projectID, zone, diskToCreate).Do()` instantly gets an error response of alreadyExists, so we must check for it.

I am not sure if we still need to check for the error after `waitForZoneOp`; I think that if there is an alreadyExists error, the `Do()` above will always respond with it instantly. But because I'm not sure, and to be safe, I will leave it.
2017-05-24 06:47:03 -07:00
..
BUILD Watching ClusterId from within GCE cloud provider 2017-05-23 14:11:24 -07:00
OWNERS Add bowei to OWNERS of cloudproviders/gce 2017-03-24 13:18:13 -07:00
doc.go
gce.go Watching ClusterId from within GCE cloud provider 2017-05-23 14:11:24 -07:00
gce_backendservice.go Add metric capture on GETs 2017-05-04 18:04:34 -07:00
gce_cert.go Add metric capture on GETs 2017-05-04 18:04:34 -07:00
gce_clusterid.go Watching ClusterId from within GCE cloud provider 2017-05-23 14:11:24 -07:00
gce_clusters.go Add missing underscore 2017-05-04 18:07:53 -07:00
gce_disks.go Fix provisioned GCE PD not being reused if already exists 2017-05-23 18:30:37 -04:00
gce_firewall.go missed a file 2017-05-04 18:26:45 -07:00
gce_forwardingrule.go Add metric capture on GETs 2017-05-04 18:04:34 -07:00
gce_healthchecks.go Add metric capture on GETs 2017-05-04 18:04:34 -07:00
gce_instancegroup.go missed a file 2017-05-04 18:26:45 -07:00
gce_instances.go Implement providerID node functions for gce 2017-05-19 08:41:54 +02:00
gce_loadbalancer.go Removed duplicate CIDR 2017-05-16 14:24:57 -07:00
gce_op.go Add metrics to all major gce operations {latency, errors} 2017-04-27 12:49:30 -07:00
gce_routes.go Add metric capture on GETs 2017-05-04 18:04:34 -07:00
gce_staticip.go Add metric capture on GETs 2017-05-04 18:04:34 -07:00
gce_targetproxy.go Add metric capture on GETs 2017-05-04 18:04:34 -07:00
gce_test.go Implement providerID node functions for gce 2017-05-19 08:41:54 +02:00
gce_urlmap.go Add metric capture on GETs 2017-05-04 18:04:34 -07:00
gce_util.go Implement providerID node functions for gce 2017-05-19 08:41:54 +02:00
gce_zones.go Split the GCE cloud provider into more managable chunks 2017-03-23 14:40:16 -07:00
metrics.go Add metrics to all major gce operations {latency, errors} 2017-04-27 12:49:30 -07:00
token_source.go move authoritative client-go utils out of pkg 2017-01-24 08:59:18 -05:00