default service resolver for webhook admission

the rationale behind is that webhook plugins names can be resolved by a dns server working inside a cluster.
This commit is contained in:
p0lyn0mial
2017-09-18 21:56:38 +02:00
parent 8ca1d9f19b
commit 1e2c7fdd88
5 changed files with 107 additions and 4 deletions

View File

@@ -188,9 +188,6 @@ func (i *PluginInitializer) Initialize(plugin admission.Interface) {
}
if wants, ok := plugin.(WantsServiceResolver); ok {
if i.serviceResolver == nil {
panic("An admission plugin wants the service resolver, but it was not provided.")
}
wants.SetServiceResolver(i.serviceResolver)
}