mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
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.
This commit is contained in:
parent
46c8dfd7a2
commit
f078f8df94
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user