mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
E2E test lib: improved logging of not ready nodes.
E2E test lib: improved logging of not ready nodes.
This commit is contained in:
parent
bb41d7706f
commit
ec17af655f
@ -4011,7 +4011,11 @@ func AllNodesReady(c clientset.Interface, timeout time.Duration) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(notReady) > TestContext.AllowedNotReadyNodes || !allowedNotReadyReasons(notReady) {
|
if len(notReady) > TestContext.AllowedNotReadyNodes || !allowedNotReadyReasons(notReady) {
|
||||||
return fmt.Errorf("Not ready nodes: %#v", notReady)
|
msg := ""
|
||||||
|
for _, node := range notReady {
|
||||||
|
msg = fmt.Sprintf("%s, %s", msg, node.Name)
|
||||||
|
}
|
||||||
|
return fmt.Errorf("Not ready nodes: %#v", msg)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user