kubernetes/plugin/pkg/admission
Kubernetes Submit Queue 45f983144f
Merge pull request #55504 from php-coder/cleanup_create_sc
Automatic merge from submit-queue (batch tested with PRs 55557, 55504, 56269, 55604, 56202). 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>.

Create{Container,Pod}SecurityContext: modify a pod and don't return the annotations

**What this PR does / why we need it**:
Prior https://github.com/kubernetes/kubernetes/pull/52849 we couldn't modify a pod and had to return annotations from the methods. But now, as we always working with a copy of a pod, we can modify it directly and we don't need to copy&return annotations separately.

This PR simplifies the code by modifying a pod directly. Also it renames these methods and replaces returning of the `SecurityContext` by in-place modification.

In fact it reverts the changes from https://github.com/kubernetes/kubernetes/pull/30257

**Release note**:
```release-note
NONE
```

PTAL @liggitt @timstclair 
CC @simo5
2017-12-14 13:54:40 -08:00
..
admit Update generated files 2017-11-09 12:14:08 +01:00
alwayspullimages Update generated files 2017-11-09 12:14:08 +01:00
antiaffinity Update generated files 2017-11-09 12:14:08 +01:00
defaulttolerationseconds Add GA toleration key and leave alpha ones untouched 2017-11-17 22:07:05 +08:00
deny Update generated files 2017-11-09 12:14:08 +01:00
eventratelimit Update generated code 2017-11-10 18:26:46 +01:00
exec Update generated files 2017-11-09 12:14:08 +01:00
extendedresourcetoleration Add ExtendedResourceToleration admission controller. 2017-11-18 16:47:51 -08:00
gc admission/webhook: move webhook initializer into plugin 2017-11-20 09:28:42 +01:00
imagepolicy Merge pull request #55379 from lichuqiang/admission_fix 2017-11-18 07:53:41 -08:00
initialresources add type assertions to admission plugins 2017-11-13 09:20:31 -05:00
limitranger admission/webhook: move webhook initializer into plugin 2017-11-20 09:28:42 +01:00
namespace Merge pull request #55938 from sttts/sttts-compositional-admission-metrics 2017-11-21 07:43:40 -08:00
noderestriction Allow node to update PVC's status 2017-11-22 14:32:50 -05:00
persistentvolume Merge pull request #56118 from gnufied/implement-ebs-resize 2017-11-23 00:23:21 -08:00
persistentvolumeclaim/pvcprotection Admission Controller PVC Finalizer Plugin 2017-11-23 11:46:28 +01:00
podnodeselector admission/webhook: move webhook initializer into plugin 2017-11-20 09:28:42 +01:00
podpreset add type assertions to admission plugins 2017-11-13 09:20:31 -05:00
podtolerationrestriction admission/webhook: move webhook initializer into plugin 2017-11-20 09:28:42 +01:00
priority not calculate new priority when user update pods 2017-11-10 16:10:51 +08:00
resourcequota make admission config scheme configurable 2017-11-21 15:23:16 -05:00
security Merge pull request #55504 from php-coder/cleanup_create_sc 2017-12-14 13:54:40 -08:00
securitycontext/scdeny Update generated files 2017-11-09 12:14:08 +01:00
serviceaccount Add system namespaces to admission metrics. Add tests and leverage test code from PR#55086 2017-11-14 10:46:43 -08:00
storageclass/setdefault add type assertions to admission plugins 2017-11-13 09:20:31 -05:00
OWNERS add deads to admission owners 2017-10-16 13:43:54 -04:00