summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKubernetes Submit Queue <k8s-merge-robot@users.noreply.github.com>2016-08-23 16:52:40 -0700
committerGitHub <noreply@github.com>2016-08-23 16:52:40 -0700
commit7dd6339e59d6064a507ff86f9e3bb1fe6f676e0c (patch)
tree9d047305fd000c201bc233842c3e41e2b64a9f2f
parent2a1722c80d98595eb83b3a10c95ac72e29843ca2 (diff)
parenteeb0c899220ac21dec0f5ee68559e7a93694cb1c (diff)
Merge pull request #29785 from petemiron/patch-1
Automatic merge from submit-queue Clarify documentation that new admission control plugin must be imported ```release-note ``` 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. Updated documentation to prevent future confusion.
-rw-r--r--admission_control.md11
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.