k3s/pkg/controller/job
cedric lamoriniere 1dbef2f113
Job failure policy support in JobController
Job failure policy integration in JobController. From the
JobSpec.BackoffLimit the JobController will define the backoff
duration between Job retry.

It use the ```workqueue.RateLimitingInterface``` to store the number of
"retry" as "requeue" and the default Job backoff initial duration is set
during the initialization of the ```workqueue.RateLimiter.

Since the number of retry for each job is store in a local structure
"JobController.queue" if the JobController restarts the number of retries
will be lost and the backoff duration will be reset to 0.

Add e2e test for Job backoff failure policy
2017-09-03 12:07:12 +02:00
..
BUILD Slow-start batch pod creation of rs, rc, ds, jobs 2017-09-01 09:23:43 -06:00
OWNERS Update owners file for job and cronjob controller 2017-02-07 11:24:51 +01:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
job_controller.go Job failure policy support in JobController 2017-09-03 12:07:12 +02:00
job_controller_test.go Job failure policy support in JobController 2017-09-03 12:07:12 +02:00
utils.go Migrate to NewControllerRef from meta/v1 package 2017-08-06 22:43:46 +10:00
utils_test.go make these tests table-driven 2017-08-31 14:08:46 +08:00