mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Merge pull request #46162 from lixiaobing10051267/masterFound
Automatic merge from submit-queue (batch tested with PRs 45573, 46354, 46376, 46162, 46366) break the loop when found true break the loop when found true.
This commit is contained in:
commit
8f9f412d2f
@ -225,6 +225,7 @@ func (m *FakeNodeHandler) UpdateStatus(node *v1.Node) (*v1.Node, error) {
|
|||||||
if m.Existing[i].Name == node.Name {
|
if m.Existing[i].Name == node.Name {
|
||||||
origNodeCopy = *m.Existing[i]
|
origNodeCopy = *m.Existing[i]
|
||||||
found = true
|
found = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
updatedNodeIndex := -1
|
updatedNodeIndex := -1
|
||||||
@ -233,6 +234,7 @@ func (m *FakeNodeHandler) UpdateStatus(node *v1.Node) (*v1.Node, error) {
|
|||||||
origNodeCopy = *m.UpdatedNodes[i]
|
origNodeCopy = *m.UpdatedNodes[i]
|
||||||
updatedNodeIndex = i
|
updatedNodeIndex = i
|
||||||
found = true
|
found = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user