mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #38820 from jszczepkowski/e2e-not-ready-nodes
Automatic merge from submit-queue (batch tested with PRs 38818, 38813, 38820) E2E test lib: improved logging of not ready nodes.
This commit is contained in:
commit
32946c5bd0
@ -4010,7 +4010,11 @@ func AllNodesReady(c clientset.Interface, timeout time.Duration) error {
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user