From c830c56499fbb9fa78869e1e6e296ffca9f7a369 Mon Sep 17 00:00:00 2001 From: Pavel Sorokin <60606414+pavel-snyk@users.noreply.github.com> Date: Wed, 3 Apr 2024 13:14:22 +0200 Subject: [PATCH] fix: ensure that CA_CERT defined only once --- charts/snyk-broker/templates/broker_deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/snyk-broker/templates/broker_deployment.yaml b/charts/snyk-broker/templates/broker_deployment.yaml index 67e47b5..9c430df 100644 --- a/charts/snyk-broker/templates/broker_deployment.yaml +++ b/charts/snyk-broker/templates/broker_deployment.yaml @@ -374,14 +374,14 @@ spec: - name: LOG_ENABLE_BODY value: {{ .Values.logEnableBody | squote }} - {{- if .Values.caCert }} + {{- if and (.Values.caCert) (not .Values.caCertFile) }} # HTTPS Inspection - name: CA_CERT value: /home/node/cacert/{{ .Values.caCert }} - name: NODE_EXTRA_CA_CERTS value: /home/node/cacert/{{ .Values.caCert }} {{- end }} - {{- if .Values.caCertFile }} + {{- if and (.Values.caCertFile) (not .Values.caCert) }} # HTTPS Inspection - name: CA_CERT value: /home/node/cacert/cacert