mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 12:32:03 +00:00
Wait for nodes to be ready after cluster resizing
This commit is contained in:
parent
bb6f2f7ad9
commit
977a775a6f
@ -124,6 +124,11 @@ func waitForClusterSize(c *client.Client, size int) error {
|
||||
Logf("Failed to list nodes: %v", err)
|
||||
continue
|
||||
}
|
||||
// Filter out not-ready nodes.
|
||||
filterNodes(nodes, func(node api.Node) bool {
|
||||
return isNodeReadySetAsExpected(&node, true)
|
||||
})
|
||||
|
||||
if len(nodes.Items) == size {
|
||||
Logf("Cluster has reached the desired size %d", size)
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user