mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Merge pull request #84952 from draveness/fix/topology-spread-node-score
fix: return NodeScore in even pods spread priority
This commit is contained in:
commit
7b7aa58881
@ -147,7 +147,7 @@ func CalculateEvenPodsSpreadPriorityMap(pod *v1.Pod, meta interface{}, nodeInfo
|
|||||||
m = priorityMeta.podTopologySpreadMap
|
m = priorityMeta.podTopologySpreadMap
|
||||||
}
|
}
|
||||||
if m == nil {
|
if m == nil {
|
||||||
return framework.NodeScore{}, nil
|
return framework.NodeScore{Name: node.Name, Score: 0}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// no need to continue if the node is not qualified.
|
// no need to continue if the node is not qualified.
|
||||||
|
Loading…
Reference in New Issue
Block a user