mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Merge pull request #99523 from gavinfish/sched-nodeaff-todo
Scheduler: remove outdated TODO in node_affinity.go
This commit is contained in:
commit
d1fb9fda24
@ -65,7 +65,6 @@ func NodeMatchesNodeAffinity(affinity *v1.NodeAffinity, node *v1.Node) bool {
|
|||||||
// nodeMatchesNodeSelector checks if a node's labels satisfy a list of node selector terms,
|
// nodeMatchesNodeSelector checks if a node's labels satisfy a list of node selector terms,
|
||||||
// terms are ORed, and an empty list of terms will match nothing.
|
// terms are ORed, and an empty list of terms will match nothing.
|
||||||
func nodeMatchesNodeSelector(node *v1.Node, nodeSelector *v1.NodeSelector) bool {
|
func nodeMatchesNodeSelector(node *v1.Node, nodeSelector *v1.NodeSelector) bool {
|
||||||
// TODO(#96164): parse this error earlier in the plugin so we only need to do it once per Pod.
|
|
||||||
matches, _ := corev1.MatchNodeSelectorTerms(node, nodeSelector)
|
matches, _ := corev1.MatchNodeSelectorTerms(node, nodeSelector)
|
||||||
return matches
|
return matches
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user