mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
fix return value
// matchesNodeSelector returns true if pod matches node's labels. Whether this return value should be false?
This commit is contained in:
parent
1f78e7ea68
commit
b694fc0688
@ -2378,7 +2378,7 @@ func (kl *Kubelet) matchesNodeSelector(pod *api.Pod) bool {
|
||||
node, err := kl.GetNode()
|
||||
if err != nil {
|
||||
glog.Errorf("error getting node: %v", err)
|
||||
return true
|
||||
return false
|
||||
}
|
||||
return predicates.PodMatchesNodeLabels(pod, node)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user