mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Never clean backoff in job controller
This commit is contained in:
parent
86ae84b10e
commit
5df2755399
@ -356,10 +356,10 @@ func (jm *JobController) enqueueController(obj interface{}, immediate bool) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if immediate {
|
backoff := time.Duration(0)
|
||||||
jm.queue.Forget(key)
|
if !immediate {
|
||||||
|
backoff = getBackoff(jm.queue, key)
|
||||||
}
|
}
|
||||||
backoff := getBackoff(jm.queue, key)
|
|
||||||
|
|
||||||
// TODO: Handle overlapping controllers better. Either disallow them at admission time or
|
// TODO: Handle overlapping controllers better. Either disallow them at admission time or
|
||||||
// deterministically avoid syncing controllers that fight over pods. Currently, we only
|
// deterministically avoid syncing controllers that fight over pods. Currently, we only
|
||||||
|
Loading…
Reference in New Issue
Block a user