mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #79774 from shiyan2016/cancel-process-node
cancel process node when error occurs
This commit is contained in:
commit
88808aa89f
@ -397,6 +397,7 @@ func getTPMapMatchingExistingAntiAffinity(pod *v1.Pod, nodeInfoMap map[string]*s
|
|||||||
node := nodeInfo.Node()
|
node := nodeInfo.Node()
|
||||||
if node == nil {
|
if node == nil {
|
||||||
catchError(fmt.Errorf("node %q not found", allNodeNames[i]))
|
catchError(fmt.Errorf("node %q not found", allNodeNames[i]))
|
||||||
|
cancel()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, existingPod := range nodeInfo.PodsWithAffinity() {
|
for _, existingPod := range nodeInfo.PodsWithAffinity() {
|
||||||
@ -465,6 +466,7 @@ func getTPMapMatchingIncomingAffinityAntiAffinity(pod *v1.Pod, nodeInfoMap map[s
|
|||||||
node := nodeInfo.Node()
|
node := nodeInfo.Node()
|
||||||
if node == nil {
|
if node == nil {
|
||||||
catchError(fmt.Errorf("node %q not found", allNodeNames[i]))
|
catchError(fmt.Errorf("node %q not found", allNodeNames[i]))
|
||||||
|
cancel()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
nodeTopologyPairsAffinityPodsMaps := newTopologyPairsMaps()
|
nodeTopologyPairsAffinityPodsMaps := newTopologyPairsMaps()
|
||||||
|
Loading…
Reference in New Issue
Block a user