<p>I'm trying to add the <code>{{ .Release.Namespace }}</code> to a string, but it's parsed literally as just <code>{{ .Release.Namespace }}</code> and not as the namespace itself. I've tried using quotes (<code>&quot;</code>) and using <code>tpl</code>, but nothing did the job. I'm using Helm v3.5.4.</p>
<p>In context:</p>
<pre class="lang-yaml prettyprint-override"><code>config:
  config-proxy: |-
    _front__tls
      # BEGIN::Redirect to openBalena VPN
      acl is_ssl req.ssl_ver 2:3.4
      use_backend {{ .Release.Namespace }}_openbalena-vpn_443 if !is_ssl
      # END::Redirect to openBalena VPN
</code></pre>
<p>Whole <code>values.yaml</code> is found <a href="https://github.com/bartversluijs/open-balena/blob/k8s-support-v3.2.1/k8s/chart/values.yaml" rel="nofollow noreferrer">here</a>, and the above snippet is located <a href="https://github.com/bartversluijs/open-balena/blob/k8s-support-v3.2.1/k8s/chart/values.yaml#L162-L168" rel="nofollow noreferrer">here</a>.<br />
I'm using the <a href="https://github.com/haproxy-ingress/charts/tree/master/haproxy-ingress" rel="nofollow noreferrer">HAProxy Ingress Helm Chart</a>.</p>
<p>In some parts, as you can see in the <code>values.yaml</code>, are also using <code>{{ .Release.Namespace }}</code>, but those are parsed fine (like the TCP options for example).</p>
<p>Thanks in advance!</p>

Bart Versluijs
<p>It should work if you have <code>config-proxy</code> place in <code>&lt;chart_root_dir&gt;/files/config-proxy</code> and use tpl function to load it in your template like this:</p>
<pre><code>config:
{{ tpl (.Files.Glob &quot;files/config-proxy&quot;).AsConfig .  | indent 2 }}
</code></pre>
<p>Not sure about how nested your config key is i your template, so you might adjust the indent level from the example.</p>
