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
24ee1454
Commit
24ee1454
authored
Jun 11, 2017
by
Xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scheduler/util: remove bad print format
Backoff do not have any context on pod. Remove the previous bad printing format.
parent
df1e2898
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
backoff_utils.go
plugin/pkg/scheduler/util/backoff_utils.go
+4
-3
No files found.
plugin/pkg/scheduler/util/backoff_utils.go
View file @
24ee1454
...
...
@@ -18,11 +18,12 @@ package util
import
(
"fmt"
"github.com/golang/glog"
ktypes
"k8s.io/apimachinery/pkg/types"
"sync"
"sync/atomic"
"time"
"github.com/golang/glog"
ktypes
"k8s.io/apimachinery/pkg/types"
)
type
clock
interface
{
...
...
@@ -74,7 +75,7 @@ func (entry *backoffEntry) getBackoff(maxDuration time.Duration) time.Duration {
newDuration
=
maxDuration
}
entry
.
backoff
=
newDuration
glog
.
V
(
4
)
.
Infof
(
"Backing off %s
for pod %+v"
,
duration
.
String
(),
entry
)
glog
.
V
(
4
)
.
Infof
(
"Backing off %s
"
,
duration
.
String
()
)
return
duration
}
...
...
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