Skip to content

Commit

Permalink
add steps to disable the webhooks
Browse files Browse the repository at this point in the history
Signed-off-by: Spolti <[email protected]>
  • Loading branch information
spolti committed Aug 30, 2023
1 parent 80fa999 commit 28cafff
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,31 @@ kubectl apply -f {cert_manager_installer_url}
The Cert Manager is recommended in order to help on abstracting the certificates configuration, if, for some reason it can't be installed, you need to make sure that the certificates needed by the Webhooks correctly configured, more information can be found link:{kubebuilder_webhooks_url}[here].
====

[NOTE]
====
The webhooks are enabled by default, if you want to disable it, you can update the `operator.yaml` file and set the
`ENABLE_WEBHOOKS` variable to `false`, it can be done quickly with the following command:
[source,shell]
----
curl https://raw.githubusercontent.com/kiegroup/kogito-serverless-operator/{operator_version}/operator.yaml -o operator.yaml
sed -i '/name: ENABLE_WEBHOOKS/{n;s/value: "true"/value: "false"/}' operator.yaml
----
And install the operator using this downloaded `operator.yaml` file.
[source,shell]
----
kubectl apply -f operator.yaml
----
After it is installed, there will be needed to manually delete the webhooks:
[source,shell]
----
kubectl delete mutatingwebhookconfiguration.admissionregistration.k8s.io/kogito-serverless-operator-mutating-webhook-configuration
kubectl delete validatingwebhookconfiguration.admissionregistration.k8s.io/kogito-serverless-operator-validating-webhook-configuration
----
====

.Install {product_name} Operator on Kubernetes
[source,shell,subs="attributes+"]
----
Expand Down

0 comments on commit 28cafff

Please sign in to comment.