Commit 79d97aba authored by zhengguoyong's avatar zhengguoyong

When find NodeReadyCondition, it can quit the loop

parent c785a6e7
......@@ -2607,6 +2607,7 @@ func (kl *Kubelet) setNodeStatus(node *api.Node) error {
}
node.Status.Conditions[i] = newNodeReadyCondition
updated = true
break
}
}
if !updated {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment