diff --git a/helm/charts/nats/templates/_helpers.tpl b/helm/charts/nats/templates/_helpers.tpl index d8485943..ba3853e1 100644 --- a/helm/charts/nats/templates/_helpers.tpl +++ b/helm/charts/nats/templates/_helpers.tpl @@ -41,9 +41,7 @@ Print the namespace Print the namespace for the metadata section */}} {{- define "nats.metadataNamespace" -}} -{{- with .Values.namespaceOverride }} -namespace: {{ . | quote }} -{{- end }} +namespace: {{ include "nats.namespace" . | quote }} {{- end }} {{/*