Skip to content

Commit a7c016c

Browse files
committed
chore: Document webhook configuration in additonal docs
Signed-off-by: Andrew Obuchowicz <[email protected]>
1 parent 3204f4d commit a7c016c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/additional-configuration.adoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,3 +351,25 @@ spec:
351351
----
352352

353353
For documentation on Runtime Classes, see https://kubernetes.io/docs/concepts/containers/runtime-class/
354+
355+
## Configuring the Webhook deployment
356+
The `devworkspace-webhook-server` deployment can be configured in the global DevWorkspaceOperatorConfig (DWOC). The configuration options include: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#replicas[replicas], https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/[pod tolerations] and https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector[nodeSelector].
357+
358+
These configuration options exist in the **global** DWOC's `config.webhook` field:
359+
[source,yaml]
360+
----
361+
apiVersion: controller.devfile.io/v1alpha1
362+
kind: DevWorkspaceOperatorConfig
363+
metadata:
364+
name: devworkspace-operator-config
365+
namespace: $OPERATOR_INSTALL_NAMESPACE
366+
config:
367+
webhook:
368+
nodeSelector: <string, string>
369+
tolerations: <[]tolerations>
370+
replicas: <int32>
371+
----
372+
**Note:** In order for the `devworkspace-webhook-server` configuration options to take effect:
373+
374+
- You must place them in the https://github.com/devfile/devworkspace-operator?tab=readme-ov-file#global-configuration-for-the-devworkspace-operator[global DWOC], which has the name `devworkspace-operator-config` and exists in the namespace where the DevWorkspaceOperator is installed. If it does not already exist on the cluster, you must create it.
375+
- You'll need to terminate the `devworkspace-controller-manager` pod so that the replicaset can recreate it. The new pod will update the `devworkspace-webhook-server` deployment.

0 commit comments

Comments
 (0)