mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
When find NodeReadyCondition, it can quit the loop
This commit is contained in:
parent
c785a6e77f
commit
79d97abac4
@ -2607,6 +2607,7 @@ func (kl *Kubelet) setNodeStatus(node *api.Node) error {
|
|||||||
}
|
}
|
||||||
node.Status.Conditions[i] = newNodeReadyCondition
|
node.Status.Conditions[i] = newNodeReadyCondition
|
||||||
updated = true
|
updated = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !updated {
|
if !updated {
|
||||||
|
Loading…
Reference in New Issue
Block a user