Merge pull request #11685 from piosz/autoscaling_e2e

Added cluster size autoscaling e2e test
This commit is contained in:
Jerzy Szczepkowski
2015-07-24 10:26:33 +02:00
3 changed files with 176 additions and 6 deletions

View File

@@ -119,12 +119,7 @@ func waitForGroupSize(size int) error {
}
func waitForClusterSize(c *client.Client, size int) error {
timeout := 4 * time.Minute
if providerIs("aws") {
// AWS is not as fast as gce/gke at having nodes come online
timeout = 10 * time.Minute
}
timeout := 10 * time.Minute
for start := time.Now(); time.Since(start) < timeout; time.Sleep(20 * time.Second) {
nodes, err := c.Nodes().List(labels.Everything(), fields.Everything())
if err != nil {