Merge pull request #101684 from jackfrancis/e2e-wait-for-nodes-retyable-error

test: retryable error in wait for ready nodes test
This commit is contained in:
Kubernetes Prow Robot 2021-05-07 14:35:03 -07:00 committed by GitHub
commit f697cb8d94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,8 +214,12 @@ func CheckReadyForTests(c clientset.Interface, nonblockingTaints string, allowed
}
allNodes, err := c.CoreV1().Nodes().List(context.TODO(), opts)
if err != nil {
var terminalListNodesErr error
e2elog.Logf("Unexpected error listing nodes: %v", err)
return false, err
if attempt >= 3 {
terminalListNodesErr = err
}
return false, terminalListNodesErr
}
for _, node := range allNodes.Items {
if !readyForTests(&node, nonblockingTaints) {