From 178c55182c5e701bc5975b310f11285289f55775 Mon Sep 17 00:00:00 2001 From: Jason Deal Date: Tue, 15 Oct 2024 16:28:13 -0700 Subject: [PATCH] cherry-pick(0.34.x): disable webhooks appropriately in chart (#7177) (#7232) --- 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 4b4f9450a569..8acf2f56e39b 100644 --- a/charts/karpenter/templates/deployment.yaml +++ b/charts/karpenter/templates/deployment.yaml @@ -81,9 +81,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: "{{ . }}"