kopf icon indicating copy to clipboard operation
kopf copied to clipboard

Is there a way to add namespaceSelector to the generated ValidatingWebhookConfiguration?

Open devopstales opened this issue 4 years ago • 2 comments

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.

devopstales avatar Nov 18 '21 13:11 devopstales

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).

nolar avatar Nov 18 '21 13:11 nolar

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

devopstales avatar Dec 05 '21 11:12 devopstales