Skip to content

Provide an easy way to turn off the webhook server #3456

@sbueringer

Description

@sbueringer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions