We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861dd6e commit c8844a1Copy full SHA for c8844a1
test/extended/two_node/utils/common.go
@@ -282,11 +282,8 @@ func EnsureTNFDegradedOrSkip(oc *exutil.CLI) {
282
func CountReadyNodes(nodes []corev1.Node) int {
283
ready := 0
284
for _, n := range nodes {
285
- for _, cond := range n.Status.Conditions {
286
- if cond.Type == corev1.NodeReady && cond.Status == corev1.ConditionTrue {
287
- ready++
288
- break
289
- }
+ if isNodeObjReady(n) {
+ ready++
290
}
291
292
return ready
0 commit comments