kubernetes/pkg/apis
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
..
abac mechanical repercussions 2017-01-13 08:27:14 -05:00
apps Regenerate everything 2017-02-23 12:23:03 +01:00
authentication install authentication.k8s.io/v1, add tests 2017-02-07 01:44:56 -05:00
authorization install authorization.k8s.io/v1, add tests 2017-02-06 18:16:51 -05:00
autoscaling Fix HPA v1 Conversion Bug 2017-02-20 01:45:49 -05:00
batch Re-generate code and API spec for CronJob API 2017-02-25 06:51:59 -05:00
certificates generated files 2017-02-20 16:20:57 -05:00
componentconfig Disble cgroups-per-qos pending Burstable/cpu.shares being set 2017-02-24 10:16:41 -05:00
extensions Merge pull request #42098 from kargakis/fix-rs-rc-validation 2017-02-26 04:34:00 -08:00
imagepolicy Update protobufs 2017-02-02 06:58:29 +01:00
meta/v1 genericapiserver: get rid of pkg/genericapiserver/server/openapi/common 2017-01-19 13:06:47 +01:00
policy Update protobufs 2017-02-02 06:58:29 +01:00
rbac Reconcile bootstrap clusterroles on server start 2017-02-14 12:33:05 -05:00
storage Revert "Merge pull request #40088 from jsafrane/storage-ga-v1" 2017-02-25 22:35:15 -05:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00