pkg/admission: make plugin registry non-global

This commit is contained in:
Dr. Stefan Schimanski
2017-03-27 13:26:03 +02:00
parent 750d5c3bc5
commit 63f547e1b1
41 changed files with 124 additions and 59 deletions

View File

@@ -31,7 +31,7 @@ import (
)
func init() {
admission.RegisterPlugin("NamespaceExists", func(config io.Reader) (admission.Interface, error) {
kubeapiserveradmission.Plugins.Register("NamespaceExists", func(config io.Reader) (admission.Interface, error) {
return NewExists(), nil
})
}