-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
There is no easy way today to disable the webhook server. I think we should improve this.
I think there are use cases where no webhook server (and accordingly no conversion & admission webhooks) is needed.
In my current case I just wanted to run the reconcilers of a controller for debugging purposes.
The current situation is that if no WebhookServer is provided via Options.WebhookServer the manager will instantiate a default server.
The default server itself also has no way to disable it (e.g. via an explicit flag or setting the port to -1). For comparison the metrics server is disabled if BindAddress is set to 0.
The only way I found to disable the metrics server is to configure a "no-op" webhook server via options. Would be nice if that would be easier.