fix WaitForAllNodesSchedulable so it logs when cluster size is small

This commit is contained in:
Joseph-Irving 2018-12-04 14:28:17 +00:00
parent a605988d5d
commit 95165c5d4e

View File

@ -2734,7 +2734,7 @@ func WaitForAllNodesSchedulable(c clientset.Interface, timeout time.Duration) er
// However, we only allow non-ready nodes with some specific reasons.
if len(notSchedulable) > 0 {
// 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:")
for i := range notSchedulable {
Logf("-> %s Ready=%t Network=%t Taints=%v",