kubernetes/pkg/controller
Kubernetes Submit Queue 80e6492f03 Merge pull request #40932 from peay/cronjob-max-finished-jobs
Automatic merge from submit-queue (batch tested with PRs 40932, 41896, 41815, 41309, 41628)

Modify CronJob API to add job history limits, cleanup jobs in controller

**What this PR does / why we need it**:
As discussed in #34710: this adds two limits to `CronJobSpec`, to limit the number of finished jobs created by a CronJob to keep.

**Which issue this PR fixes**: fixes #34710

**Special notes for your reviewer**:

cc @soltysh, please have a look and let me know what you think -- I'll then add end to end testing and update the doc in a separate commit. What is the timeline to get this into 1.6?

The plan:

- [x] API changes
  - [x] Changing versioned APIs
    - [x] `types.go`
    - [x] `defaults.go` (nothing to do)
    - [x] `conversion.go` (nothing to do?)
    - [x] `conversion_test.go` (nothing to do?)
  - [x] Changing the internal structure
    - [x] `types.go`
    - [x] `validation.go`
    - [x] `validation_test.go`
  - [x] Edit version conversions
    - [x] Edit (nothing to do?)
    - [x] Run `hack/update-codegen.sh`
  - [x] Generate protobuf objects
    - [x] Run `hack/update-generated-protobuf.sh`
  - [x] Generate json (un)marshaling code
    - [x] Run `hack/update-codecgen.sh`
  - [x] Update fuzzer
- [x] Actual logic
- [x] Unit tests
- [x] End to end tests
- [x] Documentation changes and API specs update in separate commit


**Release note**:

```release-note
Add configurable limits to CronJob resource to specify how many successful and failed jobs are preserved.
```
2017-02-26 08:09:54 -08:00
..
bootstrap Ignore Bootstrap Token secrets that don't use predictable names. 2017-02-20 11:38:21 -08:00
certificates react to informer updates 2017-02-13 09:18:32 -05:00
cloud react to informer updates 2017-02-13 09:18:32 -05:00
cronjob Modify CronJob API to add job history limits, cleanup jobs in controller 2017-02-25 06:51:54 -05:00
daemon Update tests. 2017-02-22 09:27:42 -05:00
deployment Merge pull request #41250 from kargakis/switch-get-from-cache 2017-02-26 06:47:00 -08:00
disruption react to informer updates 2017-02-13 09:18:32 -05:00
endpoint react to informer updates 2017-02-13 09:18:32 -05:00
garbagecollector Switch watch prefixes to params 2017-02-22 08:54:08 -05:00
informers Revert "Merge pull request #40088 from jsafrane/storage-ga-v1" 2017-02-25 22:35:15 -05:00
job react to informer updates 2017-02-13 09:18:32 -05:00
namespace Merge pull request #41652 from ncdc/shared-informers-13-namespace 2017-02-23 09:36:38 -08:00
node generated 2017-02-24 09:24:33 +01:00
podautoscaler HPA: Don't mutate the shared informer cache 2017-02-21 11:57:08 -05:00
podgc react to informer updates 2017-02-13 09:18:32 -05:00
replicaset Merge pull request #41876 from kargakis/add-approvers-in-rc-rs-controllers 2017-02-24 15:34:27 -08:00
replication Merge pull request #41876 from kargakis/add-approvers-in-rc-rs-controllers 2017-02-24 15:34:27 -08:00
resourcequota Switch resourcequota controller to shared informers 2017-02-14 12:20:27 -05:00
route Switch route controller to shared informers 2017-02-13 15:21:33 -05:00
service Switch scheduler to use generated listers/informers 2017-02-23 09:57:12 -05:00
serviceaccount Switch serviceaccounts controller to generated shared informers 2017-02-14 14:21:14 -05:00
statefulset Merge pull request #40910 from justinsb/fix_35695 2017-02-23 20:57:29 -08:00
ttl react to informer updates 2017-02-13 09:18:32 -05:00
volume Revert "Merge pull request #40088 from jsafrane/storage-ga-v1" 2017-02-25 22:35:15 -05:00
.import-restrictions add import restrictions 2016-10-13 16:10:24 -07:00
BUILD Merge pull request #41361 from enisoc/controller-ref-manager 2017-02-23 20:57:32 -08:00
client_builder.go Make controller-manager resilient to stale serviceaccount tokens 2017-02-17 23:59:00 -05:00
controller_ref_manager.go Refactor ControllerRefManager 2017-02-16 15:09:17 -08:00
controller_utils_test.go Deployment: filter out old RSes that are deleted or with non-zero replicas before cleanup 2017-02-16 14:48:10 -08:00
controller_utils.go Fix leftover Taint-related helper function 2017-02-24 09:24:33 +01:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
lookup_cache.go Use fnv.New32a() in hash instead adler32 2017-02-15 14:03:54 +08:00
OWNERS Add janetkuo to approvers for controllers 2017-02-08 14:37:25 -08:00