Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.02 KB

starting-operator-with-webhooks.md

File metadata and controls

19 lines (11 loc) · 1.02 KB

Enable webhooks in Lifecycle Manager

Context

To make local testing easier, webhooks are disabled by default. To enable webhooks running with the operator, you must change some kustomization.yaml files as well as introduce a flag that will enable the webhook server.

For further information, read the kubebuilder tutorial.

Procedure

  1. Go to config/crd/kustomization.yaml. Follow the instructions from the file to uncomment sections referring to [WEBHOOK] and [CERT_MANAGER].

  2. Go to config/default/kustomization.yaml. Follow the instruction in the file and uncomment all sections referring to [WEBHOOK], [CERT-MANAGER], and [PROMETHEUS].

  3. Enable the webhooks by setting the enable-webhooks flag. Run:

    go run ./main.go ./flags.go --enable-webhooks