Unverified Commit 60339ed3 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #71591 from mborsz/lasasd

In NodeKiller.Run, wait before first attempt to kill.
parents 25c9ac65 1d9b1a69
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment