mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #47225 from NickrenREN/fix-operation
Automatic merge from submit-queue Fix mismatched types Verbose and bool Fix invalid operation: mismatched types Verbose and bool **Release note**: ```release-note NONE ```
This commit is contained in:
commit
53a66020e4
@ -620,12 +620,14 @@ func PodFitsResources(pod *v1.Pod, meta interface{}, nodeInfo *schedulercache.No
|
||||
}
|
||||
}
|
||||
|
||||
if glog.V(10) && len(predicateFails) == 0 {
|
||||
if glog.V(10) {
|
||||
if len(predicateFails) == 0 {
|
||||
// We explicitly don't do glog.V(10).Infof() to avoid computing all the parameters if this is
|
||||
// not logged. There is visible performance gain from it.
|
||||
glog.Infof("Schedule Pod %+v on Node %+v is allowed, Node is running only %v out of %v Pods.",
|
||||
podName(pod), node.Name, len(nodeInfo.Pods()), allowedPodNumber)
|
||||
}
|
||||
}
|
||||
return len(predicateFails) == 0, predicateFails, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user