Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1766af60
Commit
1766af60
authored
Jun 09, 2017
by
NickrenREN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mismatched types Verbose and bool
Fix invalid operation: mismatched types Verbose and bool
parent
0613ae50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
predicates.go
plugin/pkg/scheduler/algorithm/predicates/predicates.go
+7
-5
No files found.
plugin/pkg/scheduler/algorithm/predicates/predicates.go
View file @
1766af60
...
...
@@ -621,11 +621,13 @@ func PodFitsResources(pod *v1.Pod, meta interface{}, nodeInfo *schedulercache.No
}
}
if
glog
.
V
(
10
)
&&
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
)
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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment