diff options
| author | Kubernetes Submit Queue <k8s-merge-robot@users.noreply.github.com> | 2017-10-14 00:06:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-14 00:06:49 -0700 |
| commit | 1242341331c77f079b8bf9d2980a4be5fd78faa6 (patch) | |
| tree | 7ce7ea26672d1ccee61c595e6f987ce048e38342 | |
| parent | f40aa7b8f44eba9f5561a072f6fdf807384a86b2 (diff) | |
| parent | cbb4bdd4979eae122ed4a6266b509bec35beba88 (diff) | |
Merge pull request #1187 from wangxinxu411/spell_error
Automatic merge from submit-queue.
change admison to admission
| -rw-r--r-- | contributors/design-proposals/api-machinery/apiserver-build-in-admission-plugins.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contributors/design-proposals/api-machinery/apiserver-build-in-admission-plugins.md b/contributors/design-proposals/api-machinery/apiserver-build-in-admission-plugins.md index 5732033a..f09af314 100644 --- a/contributors/design-proposals/api-machinery/apiserver-build-in-admission-plugins.md +++ b/contributors/design-proposals/api-machinery/apiserver-build-in-admission-plugins.md @@ -61,7 +61,7 @@ The source code of the plugin can be found [here](https://github.com/kubernetes/ Having the plugin, the next step is the registration. [AdmissionOptions](https://github.com/kubernetes/kubernetes/blob/2f00e6d72c9d58fe3edc3488a91948cf4bfcc6d9/staging/src/k8s.io/apiserver/pkg/server/options/admission.go) provides two important things. Firstly it exposes [a register](https://github.com/kubernetes/kubernetes/blob/2f00e6d72c9d58fe3edc3488a91948cf4bfcc6d9/staging/src/k8s.io/apiserver/pkg/server/options/admission.go#L43) under which all addmission plugins are registered. In fact, that's exactly what the [Register](https://github.com/kubernetes/kubernetes/blob/2f00e6d72c9d58fe3edc3488a91948cf4bfcc6d9/staging/src/k8s.io/sample-apiserver/pkg/admission/plugin/banflunder/admission.go#L33) -method does from our example admision plugin. It accepts a global registry as a parameter and then simply registers itself in that registry. +method does from our example admission plugin. It accepts a global registry as a parameter and then simply registers itself in that registry. Secondly, it adds an admission chain to the server configuration via [ApplyTo](https://github.com/kubernetes/kubernetes/blob/2f00e6d72c9d58fe3edc3488a91948cf4bfcc6d9/staging/src/k8s.io/apiserver/pkg/server/options/admission.go#L66) method. The method accepts optional parameters in the form of `pluginInitalizers`. This is useful when admission plugins need custom configuration that is not provided by the generic initializer. |
