Skip to content

Commit

Permalink
Merge pull request kubernetes#80018 from snowplayfire/fixnonode-for-p…
Browse files Browse the repository at this point in the history
…redicate

keep processing other nodes for the nil node error
  • Loading branch information
k8s-ci-robot authored Jul 11, 2019
2 parents 9138514 + 6a1bbff commit 5292558
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/scheduler/algorithm/predicates/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,7 @@ func getTPMapMatchingExistingAntiAffinity(pod *v1.Pod, nodeInfoMap map[string]*s
nodeInfo := nodeInfoMap[allNodeNames[i]]
node := nodeInfo.Node()
if node == nil {
catchError(fmt.Errorf("node %q not found", allNodeNames[i]))
cancel()
klog.Errorf("node %q not found", allNodeNames[i])
return
}
for _, existingPod := range nodeInfo.PodsWithAffinity() {
Expand Down Expand Up @@ -465,8 +464,7 @@ func getTPMapMatchingIncomingAffinityAntiAffinity(pod *v1.Pod, nodeInfoMap map[s
nodeInfo := nodeInfoMap[allNodeNames[i]]
node := nodeInfo.Node()
if node == nil {
catchError(fmt.Errorf("node %q not found", allNodeNames[i]))
cancel()
klog.Errorf("node %q not found", allNodeNames[i])
return
}
nodeTopologyPairsAffinityPodsMaps := newTopologyPairsMaps()
Expand Down

0 comments on commit 5292558

Please sign in to comment.