From a4dca0013b13b2a859a3814473a99b6208e5da19 Mon Sep 17 00:00:00 2001 From: Jason Deal Date: Tue, 15 Oct 2024 16:27:41 -0700 Subject: [PATCH] cherry-pick(0.35.x): disable webhooks appropriately in chart (#7177) (#7230) --- 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: "{{ . }}"