mirror of https://github.com/k3s-io/k3s
fix return value
// matchesNodeSelector returns true if pod matches node's labels. Whether this return value should be false?pull/6/head
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