mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #71709 from Joseph-Irving/fix-e2e-node-schedulable-logging
fix WaitForAllNodesSchedulable so it outputs logs when cluster size is small
This commit is contained in:
commit
e932f01576
@ -2734,7 +2734,7 @@ func WaitForAllNodesSchedulable(c clientset.Interface, timeout time.Duration) er
|
|||||||
// However, we only allow non-ready nodes with some specific reasons.
|
// However, we only allow non-ready nodes with some specific reasons.
|
||||||
if len(notSchedulable) > 0 {
|
if len(notSchedulable) > 0 {
|
||||||
// In large clusters, log them only every 10th pass.
|
// In large clusters, log them only every 10th pass.
|
||||||
if len(nodes.Items) >= largeClusterThreshold && attempt%10 == 0 {
|
if len(nodes.Items) < largeClusterThreshold || attempt%10 == 0 {
|
||||||
Logf("Unschedulable nodes:")
|
Logf("Unschedulable nodes:")
|
||||||
for i := range notSchedulable {
|
for i := range notSchedulable {
|
||||||
Logf("-> %s Ready=%t Network=%t Taints=%v",
|
Logf("-> %s Ready=%t Network=%t Taints=%v",
|
||||||
|
Loading…
Reference in New Issue
Block a user