Files
kubernetes/pkg/apis/core
Kubernetes Submit Queue 71c374d093 Merge pull request #59880 from liggitt/init-container-annotations
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Drop init container annotations during conversion

https://github.com/kubernetes/kubernetes/pull/51816/files#diff-0fa94eafdf1c7cd2171c836b53fd6323 removed special handling of init container annotations in API conversion in 1.8

However, older clients (like 1.7 kubectl) still performed that handling in some paths, which would make an object round-tripped through kubectl show up with additional annotations.

Those additions would get flagged as disallowed mutations in some objects.

This change strips init-container annotations during conversion so that old clients sending init container annotations (which are inert in 1.8+) don't trigger validation errors around immutable fields.

Fixes #54816

```release-note
Restores the ability of older clients to delete and scale jobs with initContainers
```
2018-02-20 14:56:16 -08:00
..
2017-11-22 18:40:09 +00:00
2018-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2017-11-10 18:25:26 +01:00
2017-11-22 18:40:09 +00:00
2017-11-09 12:14:07 +01:00
2017-11-09 12:14:07 +01:00
2017-11-09 12:14:07 +01:00
2017-11-09 12:14:07 +01:00
2018-02-16 17:54:10 -08:00