From 7f93e7dcc61a325381fd401a9dca76dd7ed33570 Mon Sep 17 00:00:00 2001 From: Caleb Lloyd Date: Mon, 4 Mar 2024 14:30:53 -0500 Subject: [PATCH] [nats helm] natsbox check tls enabled before adding CA 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 }}