Skip to content

Commit 178c551

Browse files
authored
cherry-pick(0.34.x): disable webhooks appropriately in chart (#7177) (#7232)
1 parent 67af911 commit 178c551

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/karpenter/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ spec:
8181
value: "{{ .Values.webhook.port }}"
8282
- name: WEBHOOK_METRICS_PORT
8383
value: "{{ .Values.webhook.metrics.port }}"
84-
- name: DISABLE_WEBHOOK
85-
value: "false"
8684
{{- end }}
85+
- name: DISABLE_WEBHOOK
86+
value: "{{ not .Values.webhook.enabled }}"
8787
{{- with .Values.logLevel }}
8888
- name: LOG_LEVEL
8989
value: "{{ . }}"

0 commit comments

Comments
 (0)