mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Use PollUntilContextTimeout to replace PollImmediateWithContext
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
This commit is contained in:
parent
34b8832edb
commit
1599658fc6
@ -46,10 +46,11 @@ func WaitForAllNodesSchedulable(ctx context.Context, c clientset.Interface, time
|
|||||||
}
|
}
|
||||||
|
|
||||||
framework.Logf("Waiting up to %v for all (but %d) nodes to be schedulable", timeout, framework.TestContext.AllowedNotReadyNodes)
|
framework.Logf("Waiting up to %v for all (but %d) nodes to be schedulable", timeout, framework.TestContext.AllowedNotReadyNodes)
|
||||||
return wait.PollImmediateWithContext(
|
return wait.PollUntilContextTimeout(
|
||||||
ctx,
|
ctx,
|
||||||
30*time.Second,
|
30*time.Second,
|
||||||
timeout,
|
timeout,
|
||||||
|
true,
|
||||||
CheckReadyForTests(ctx, c, framework.TestContext.NonblockingTaints, framework.TestContext.AllowedNotReadyNodes, largeClusterThreshold),
|
CheckReadyForTests(ctx, c, framework.TestContext.NonblockingTaints, framework.TestContext.AllowedNotReadyNodes, largeClusterThreshold),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user