diff options
| author | Peter Miron <peter.miron@apcera.com> | 2016-07-29 13:23:37 -0400 |
|---|---|---|
| committer | Peter Miron <peter.miron@apcera.com> | 2016-08-23 11:51:46 -0400 |
| commit | eeb0c899220ac21dec0f5ee68559e7a93694cb1c (patch) | |
| tree | eb37fee766ebdb8b48997ab876c4507329325790 | |
| parent | e5a36cd230620ee3337ff35d5dfbe91c40ed9766 (diff) | |
New plugin must be imported
Admission control design doc doesn't mention importing the plugin to plugins.go. I was unable to get the plugin to build into my binary without it.
| -rw-r--r-- | admission_control.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/admission_control.md b/admission_control.md index 32a0907e..f879bfd3 100644 --- a/admission_control.md +++ b/admission_control.md @@ -104,6 +104,17 @@ func init() { } ``` +A **plug-in** must be added to the imports in [plugins.go](../../cmd/kube-apiserver/app/plugins.go) + +```go + // Admission policies + _ "k8s.io/kubernetes/plugin/pkg/admission/admit" + _ "k8s.io/kubernetes/plugin/pkg/admission/alwayspullimages" + _ "k8s.io/kubernetes/plugin/pkg/admission/antiaffinity" + ... + _ "<YOUR NEW PLUGIN>" +``` + Invocation of admission control is handled by the **APIServer** and not individual **RESTStorage** implementations. |
