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 }}