title: Using a yaml array with helm template
body: <p>I have a directory structure representing a Helm chart as follows:</p>
  <pre><code>Chart.yaml
  values.yaml
  templates/
    template.tpl
  </code></pre>
  <p>values.yaml:</p>
  <pre><code>foo: [&quot;bar&quot;, &quot;baz&quot;]
  
  FOO:
   - BAR
   - BAZ
  </code></pre>
  <p>templates/template.tpl:</p>
  <pre><code>thing1: {{ .Values.foo }}
  thing2: {{ .Values.FOO }}
  </code></pre>
  <p>Output of running <code>helm template .</code> in this directory. (Helm version v3.6.3)</p>
  <pre><code>---
  # Source: test/templates/template.tpl
  thing1: [bar baz]
  thing2: [BAR BAZ]
  </code></pre>
  <p>You can see here that both thing1 and thing2 map to YAML arrays containing one string each, namely the strings <code>&quot;bar baz&quot;</code> and <code>&quot;BAR BAZ&quot;</code>.</p>
  <p>I would like the items in the array to still be separate stings after templating. But the built-in functions that I have found in the helm template language documentation (like <code>{{ list .Values.foo }}</code>) don't do anything productive.</p>
  <p>Can someone point me at how to properly template YAML arrays of strings?</p>