mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #11117 from justinsb/e2e_aws_increase_nodeboot_timeout
e2e: AWS: Increase timeout on the node resize tests
This commit is contained in:
commit
d108d7f1d0
@ -118,7 +118,13 @@ func waitForGroupSize(size int) error {
|
||||
}
|
||||
|
||||
func waitForClusterSize(c *client.Client, size int) error {
|
||||
for start := time.Now(); time.Since(start) < 4*time.Minute; time.Sleep(20 * time.Second) {
|
||||
timeout := 4 * time.Minute
|
||||
if providerIs("aws") {
|
||||
// AWS is not as fast as gce/gke at having nodes come online
|
||||
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 {
|
||||
Logf("Failed to list nodes: %v", err)
|
||||
|
Loading…
Reference in New Issue
Block a user