mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Merge pull request #129793 from googs1025/chore/log_improve
chore(scheduler): improve log output for podtopologyspread filter plugin
This commit is contained in:
commit
2d32348f86
@ -329,9 +329,9 @@ func (pl *PodTopologySpread) Filter(ctx context.Context, cycleState *framework.C
|
||||
podLabelSet := labels.Set(pod.Labels)
|
||||
for i, c := range s.Constraints {
|
||||
tpKey := c.TopologyKey
|
||||
tpVal, ok := node.Labels[c.TopologyKey]
|
||||
tpVal, ok := node.Labels[tpKey]
|
||||
if !ok {
|
||||
logger.V(5).Info("Node doesn't have required label", "node", klog.KObj(node), "label", tpKey)
|
||||
logger.V(5).Info("Node doesn't have required topology label for spread constraint", "node", klog.KObj(node), "topologyKey", tpKey)
|
||||
return framework.NewStatus(framework.UnschedulableAndUnresolvable, ErrReasonNodeLabelNotMatch)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user