Skip to content

Commit

Permalink
fix: ensure that CA_CERT defined only once
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-snyk committed Apr 3, 2024
1 parent 13a1378 commit c830c56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/snyk-broker/templates/broker_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c830c56

Please sign in to comment.