mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
Remove outdated TODO in node_affinity.go
This commit is contained in:
parent
2014d37e51
commit
da6d5669b3
@ -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,
|
||||
// terms are ORed, and an empty list of terms will match nothing.
|
||||
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)
|
||||
return matches
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user