From 3f99fce729e7a1032d745448b6ca0fd234cf9aa8 Mon Sep 17 00:00:00 2001 From: Caleb Lloyd <2414837+caleblloyd@users.noreply.github.com> Date: Tue, 5 Mar 2024 06:28:53 -0500 Subject: [PATCH] [nats helm] natsbox check tls enabled before adding CA (#873) Signed-off-by: Caleb Lloyd --- helm/charts/nats/files/nats-box/contexts-secret/context.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helm/charts/nats/files/nats-box/contexts-secret/context.yaml b/helm/charts/nats/files/nats-box/contexts-secret/context.yaml index 97e4671b..54480eac 100644 --- a/helm/charts/nats/files/nats-box/contexts-secret/context.yaml +++ b/helm/charts/nats/files/nats-box/contexts-secret/context.yaml @@ -39,11 +39,13 @@ key: {{ printf "%s/%s" $dir (.key | default "tls.key") | quote }} {{- end }} # tlsCA +{{- if $.Values.config.nats.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 }}