Ubernetes Lite GCE: Support multiple zones in GCE cloud provider

We adapt the existing code to work across all zones in a region.

We require a feature-flag to enable Ubernetes-Lite

Reasons:

* There are some behavioural changes if users create volumes with
the same name in two zones.
* We don't want to make one API call per zone if we're not running
Ubernetes-Lite.
* Ubernetes-Lite is still experimental.

There isn't a parallel flag implemented for AWS, because at the moment
there would be no behaviour changes from this.
This commit is contained in:
Justin Santa Barbara
2015-11-29 14:40:09 -05:00
parent 2958ea253a
commit 43cbfb74fe
8 changed files with 420 additions and 128 deletions

View File

@@ -314,7 +314,7 @@ func createPD() (string, error) {
return "", err
}
err = gceCloud.CreateDisk(pdName, 10 /* sizeGb */)
err = gceCloud.CreateDisk(pdName, testContext.CloudConfig.Zone, 10 /* sizeGb */)
if err != nil {
return "", err
}