kubernetes/plugin/pkg/admission
Kubernetes Submit Queue aca386059d
Merge pull request #55938 from sttts/sttts-compositional-admission-metrics
Automatic merge from submit-queue (batch tested with PRs 55938, 56055, 53385, 55796, 55922). 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>.

admission: make admission metrics compositional

Metrics emission of admission plugins and the admission chain can be implemented compositionally, i.e. completely independently from the chain logic. This PR does that, moves the whole metrics code into a sub-package to contain complexity. The plumbing logic for the emitted metrics finally is cleanly done in the apiserver bootstrapping code, instead of being totally interleaved with the core admission logic.

Ratio:
- considerably less complexity
- admission plugins are compositional, including the chain. We cannot assume that there is only one chain at the outside of the admission plugin structure. Downstream projects might have more complex admission chains, i.e. multiple chain object nested.
- addition of metrics is plumbing and should be in the apiserver plumbing code. This makes it much easier to reason about the security critical admission chain.

Follow-up of #55183 and based on #55919.
2017-11-21 07:43: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 Update generated files 2017-11-09 12:14:08 +01:00
persistentvolume admission: make metrics compositional and move to metrics sub-package 2017-11-20 15:32:38 +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 Update generated code 2017-11-10 18:26:46 +01:00
security admission: don't update psp annotation on update 2017-11-13 17:10:17 +01: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