<p>I would like to be able to reference the current namespace in <code>values.yaml</code> to use it to suffix some values like this</p>

<pre><code># in values.yaml
someParam: someval-{{ .Release.Namespace }}
</code></pre>

<p>It much nicer to define it this way instead of going into all my templates and adding <code>{{ .Release.Namespace }}</code>. If I can do it in <code>values.yaml</code> it's much clearer and only needs to be defined in one place.</p>

<p>If you know that <code>someParam</code> might contain templating constructs, Helm includes a <a href="https://helm.sh/docs/developing_charts/#using-the-tpl-function" rel="nofollow noreferrer"><code>tpl</code></a> function that interprets it.</p>

<pre><code>- name: SOME_VARIABLE
  value: {{ .Values.someParam | tpl }}
</code></pre>

<p>If a chart allows this it generally documents it.  As a specific example, the <a href="https://github.com/helm/charts/tree/master/stable/postgresql" rel="nofollow noreferrer">helm/charts PostgreSQL chart</a> documents that its <code>configurationConfigMap</code> setting is</p>

<blockquote>
  <p>ConfigMap with the PostgreSQL configuration files (Note: Overrides <code>postgresqlConfiguration</code> and <code>pgHbaConfiguration</code>). <strong>The value is evaluated as a template.</strong></p>
</blockquote>

<p>So for that specific value, you can put a template macro in the <code>values.yaml</code> file.</p>
