Skip to content

Commit 28cafff

Browse files
committed
add steps to disable the webhooks
Signed-off-by: Spolti <fspolti@redhat.com>
1 parent 80fa999 commit 28cafff

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

serverlessworkflow/modules/ROOT/pages/cloud/operator/install-serverless-operator.adoc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,31 @@ kubectl apply -f {cert_manager_installer_url}
9292
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].
9393
====
9494

95+
[NOTE]
96+
====
97+
The webhooks are enabled by default, if you want to disable it, you can update the `operator.yaml` file and set the
98+
`ENABLE_WEBHOOKS` variable to `false`, it can be done quickly with the following command:
99+
[source,shell]
100+
----
101+
curl https://raw.githubusercontent.com/kiegroup/kogito-serverless-operator/{operator_version}/operator.yaml -o operator.yaml
102+
sed -i '/name: ENABLE_WEBHOOKS/{n;s/value: "true"/value: "false"/}' operator.yaml
103+
----
104+
105+
And install the operator using this downloaded `operator.yaml` file.
106+
[source,shell]
107+
----
108+
kubectl apply -f operator.yaml
109+
----
110+
111+
After it is installed, there will be needed to manually delete the webhooks:
112+
113+
[source,shell]
114+
----
115+
kubectl delete mutatingwebhookconfiguration.admissionregistration.k8s.io/kogito-serverless-operator-mutating-webhook-configuration
116+
kubectl delete validatingwebhookconfiguration.admissionregistration.k8s.io/kogito-serverless-operator-validating-webhook-configuration
117+
----
118+
====
119+
95120
.Install {product_name} Operator on Kubernetes
96121
[source,shell,subs="attributes+"]
97122
----

0 commit comments

Comments
 (0)