summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangxinxu <wangxinxu@ghostcloud.cn>2017-10-14 14:14:38 +0800
committerwangxinxu <wangxinxu@ghostcloud.cn>2017-10-14 14:14:38 +0800
commitcbb4bdd4979eae122ed4a6266b509bec35beba88 (patch)
tree279d1e169cfee3f31194aecedd295f9032d32e30
parentb8e52172d6658c844f42344c4af326694a544803 (diff)
change admison to admission
-rw-r--r--contributors/design-proposals/api-machinery/apiserver-build-in-admission-plugins.md2
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.