mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
keep processing other nodes for the nil node error
This commit is contained in:
parent
ab960c612c
commit
6a1bbff60c
@ -396,8 +396,7 @@ func getTPMapMatchingExistingAntiAffinity(pod *v1.Pod, nodeInfoMap map[string]*s
|
|||||||
nodeInfo := nodeInfoMap[allNodeNames[i]]
|
nodeInfo := nodeInfoMap[allNodeNames[i]]
|
||||||
node := nodeInfo.Node()
|
node := nodeInfo.Node()
|
||||||
if node == nil {
|
if node == nil {
|
||||||
catchError(fmt.Errorf("node %q not found", allNodeNames[i]))
|
klog.Errorf("node %q not found", allNodeNames[i])
|
||||||
cancel()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, existingPod := range nodeInfo.PodsWithAffinity() {
|
for _, existingPod := range nodeInfo.PodsWithAffinity() {
|
||||||
@ -465,8 +464,7 @@ func getTPMapMatchingIncomingAffinityAntiAffinity(pod *v1.Pod, nodeInfoMap map[s
|
|||||||
nodeInfo := nodeInfoMap[allNodeNames[i]]
|
nodeInfo := nodeInfoMap[allNodeNames[i]]
|
||||||
node := nodeInfo.Node()
|
node := nodeInfo.Node()
|
||||||
if node == nil {
|
if node == nil {
|
||||||
catchError(fmt.Errorf("node %q not found", allNodeNames[i]))
|
klog.Errorf("node %q not found", allNodeNames[i])
|
||||||
cancel()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
nodeTopologyPairsAffinityPodsMaps := newTopologyPairsMaps()
|
nodeTopologyPairsAffinityPodsMaps := newTopologyPairsMaps()
|
||||||
|
Loading…
Reference in New Issue
Block a user