Kubebuilder v4 code generation added some conditional statements around webhook registration with the manager that are skipped when ENABLE_WEBHOOKS=false.
We didn't test this out before the release and unfortunately there are some more statements that need to be skipped if we truly want to disable the webhook functionality (e.g. setting up the webhook server and obtaining webhook credentials).
Kubebuilder v4 code generation added some conditional statements around webhook registration with the manager that are skipped when ENABLE_WEBHOOKS=false.
We didn't test this out before the release and unfortunately there are some more statements that need to be skipped if we truly want to disable the webhook functionality (e.g. setting up the webhook server and obtaining webhook credentials).