When find NodeReadyCondition, it can quit the loop

This commit is contained in:
zhengguoyong 2015-11-11 16:15:01 +08:00
parent c785a6e77f
commit 79d97abac4

View File

@ -2607,6 +2607,7 @@ func (kl *Kubelet) setNodeStatus(node *api.Node) error {
}
node.Status.Conditions[i] = newNodeReadyCondition
updated = true
break
}
}
if !updated {