Skip to content

Commit

Permalink
[nats helm] natsbox check tls enabled before adding CA
Browse files Browse the repository at this point in the history
Signed-off-by: Caleb Lloyd <caleb@synadia.com>
  • Loading branch information
Caleb Lloyd committed Mar 4, 2024
1 parent 0fe5708 commit cbe9f22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm/charts/nats/files/nats-box/contexts-secret/context.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ key: {{ printf "%s/%s" $dir (.key | default "tls.key") | quote }}
{{- end }}

# tlsCA
{{- if $.Values.config.tls.enabled }}
{{- with $.Values.tlsCA }}
{{- if and .enabled (or .configMapName .secretName) }}
{{- $dir := trimSuffix "/" .dir }}
ca: {{ printf "%s/%s" $dir (.key | default "ca.crt") | quote }}
{{- end }}
{{- end }}
{{- end }}

{{- end }}

0 comments on commit cbe9f22

Please sign in to comment.