From f5b826be90a42a3e0c30cb9307d0891894320cda Mon Sep 17 00:00:00 2001 From: Jason Deal Date: Tue, 15 Oct 2024 16:27:58 -0700 Subject: [PATCH] cherry-pick(0.33.x): disable webhooks appropriately in chart (#7177) (#7233) --- charts/karpenter/templates/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/karpenter/templates/deployment.yaml b/charts/karpenter/templates/deployment.yaml index d32a9665cbfa..203e1c71639b 100644 --- a/charts/karpenter/templates/deployment.yaml +++ b/charts/karpenter/templates/deployment.yaml @@ -77,9 +77,9 @@ spec: value: "{{ .Values.webhook.port }}" - name: WEBHOOK_METRICS_PORT value: "{{ .Values.webhook.metrics.port }}" - - name: DISABLE_WEBHOOK - value: "false" {{- end }} + - name: DISABLE_WEBHOOK + value: "{{ not .Values.webhook.enabled }}" {{- with .Values.logLevel }} - name: LOG_LEVEL value: "{{ . }}"