Skip to content

Commit 3f99fce

Browse files
authored
[nats helm] natsbox check tls enabled before adding CA (#873)
Signed-off-by: Caleb Lloyd <[email protected]>
1 parent 0bfd2f0 commit 3f99fce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

helm/charts/nats/files/nats-box/contexts-secret/context.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ key: {{ printf "%s/%s" $dir (.key | default "tls.key") | quote }}
3939
{{- end }}
4040

4141
# tlsCA
42+
{{- if $.Values.config.nats.tls.enabled }}
4243
{{- with $.Values.tlsCA }}
4344
{{- if and .enabled (or .configMapName .secretName) }}
4445
{{- $dir := trimSuffix "/" .dir }}
4546
ca: {{ printf "%s/%s" $dir (.key | default "ca.crt") | quote }}
4647
{{- end }}
4748
{{- end }}
49+
{{- end }}
4850

4951
{{- end }}

0 commit comments

Comments
 (0)