J release changes
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / kong / charts / postgresql / charts / common / templates / _tplvalues.tpl
diff --git a/helm/infrastructure/subcharts/kong/charts/postgresql/charts/common/templates/_tplvalues.tpl b/helm/infrastructure/subcharts/kong/charts/postgresql/charts/common/templates/_tplvalues.tpl
new file mode 100644 (file)
index 0000000..2db1668
--- /dev/null
@@ -0,0 +1,13 @@
+{{/* vim: set filetype=mustache: */}}
+{{/*
+Renders a value that contains template.
+Usage:
+{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
+*/}}
+{{- define "common.tplvalues.render" -}}
+    {{- if typeIs "string" .value }}
+        {{- tpl .value .context }}
+    {{- else }}
+        {{- tpl (.value | toYaml) .context }}
+    {{- end }}
+{{- end -}}