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
60339ed3
Unverified
Commit
60339ed3
authored
Nov 30, 2018
by
k8s-ci-robot
Committed by
GitHub
Nov 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #71591 from mborsz/lasasd
In NodeKiller.Run, wait before first attempt to kill.
parents
25c9ac65
1d9b1a69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
nodes_util.go
test/e2e/framework/nodes_util.go
+2
-0
No files found.
test/e2e/framework/nodes_util.go
View file @
60339ed3
...
...
@@ -349,6 +349,8 @@ func NewNodeKiller(config NodeKillerConfig, client clientset.Interface, provider
// Run starts NodeKiller until stopCh is closed.
func
(
k
*
NodeKiller
)
Run
(
stopCh
<-
chan
struct
{})
{
// wait.JitterUntil starts work immediately, so wait first.
time
.
Sleep
(
wait
.
Jitter
(
k
.
config
.
Interval
,
k
.
config
.
JitterFactor
))
wait
.
JitterUntil
(
func
()
{
nodes
:=
k
.
pickNodes
()
k
.
kill
(
nodes
)
...
...
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