Never clean backoff in job controller

This commit is contained in:
Maciej Szulik 2018-05-10 11:20:22 +02:00
parent 86ae84b10e
commit 5df2755399
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -356,10 +356,10 @@ func (jm *JobController) enqueueController(obj interface{}, immediate bool) {
return
}
if immediate {
jm.queue.Forget(key)
backoff := time.Duration(0)
if !immediate {
backoff = getBackoff(jm.queue, key)
}
backoff := getBackoff(jm.queue, key)
// TODO: Handle overlapping controllers better. Either disallow them at admission time or
// deterministically avoid syncing controllers that fight over pods. Currently, we only