Is there a way to add namespaceSelector to the generated ValidatingWebhookConfiguration?
Keywords
namespaceSelector, ValidatingWebhookConfiguration
Problem
I didn't find a solution how to add a namespaceSelector to the genrated ValidatingWebhookConfiguration. I found kopf.WebhookClientConfigService so I can add the service options to ValidatingWebhookConfiguration but I did't find a similar class for namespaceSelector.
There is no such option, sadly. But you can always create your own fine-tuned webhook configuration manually and disable the auto-management in Kopf. The configuration auto-management is supposed to be only a simple quick-starter out of the box. It might be dangerous on real production deployments (e.g. by denying all pods cluster-wide; or something like this).
That is what i tried to avoid with the usage of kopf. So if there is no option for this in kopf I will try to write my own solution. THX @nolar