diff options
| author | paul <zhaochaobo@ghostcloud.cn> | 2017-10-14 15:36:29 +0800 |
|---|---|---|
| committer | paul <zhaochaobo@ghostcloud.cn> | 2017-10-14 15:36:29 +0800 |
| commit | ac80d3d4ef35830e03421c7ba4c1dfc8acdb19c3 (patch) | |
| tree | 43a4c2e64294163baadec176d4596b68ce06f004 /contributors | |
| parent | 284cdbc2183a82a9cf4e7d79f92de2bf068306c5 (diff) | |
fix spelling error
Diffstat (limited to 'contributors')
| -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 5c76f960..1dbda591 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 @@ -60,7 +60,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) +under which all admission 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 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. |
