aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/templates/_namespace.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/common/templates/_namespace.tpl')
-rw-r--r--kubernetes/common/templates/_namespace.tpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/kubernetes/common/templates/_namespace.tpl b/kubernetes/common/templates/_namespace.tpl
new file mode 100644
index 0000000000..3da9fee7c1
--- /dev/null
+++ b/kubernetes/common/templates/_namespace.tpl
@@ -0,0 +1,10 @@
+{{/*
+ Resolve the namespace to apply to a chart. The default namespace suffix
+ is the name of the chart. This can be overridden if necessary (eg. for subcharts)
+ using the following value:
+
+ - .Values.nsPrefix : override namespace prefix
+*/}}
+{{- define "common.namespace" -}}
+ {{- default .Release.Namespace .Values.nsPrefix -}}
+{{- end -}}