<p>I have a configmap which contains a toml file</p>

<p>something like </p>

<pre><code>apiVersion: v1
kind: ConfigMap
data:
  burrow.toml: |
    [zookeeper]
    servers=[abc.2181, cde.2181]
    timeout=6
    root-path="/burrow"
</code></pre>

<p>When I am trying to create a helm chart to generate this configmap, I was putting something like:</p>

<pre><code>apiVersion: v1
kind: ConfigMap
data:
  burrow.toml: |
    [zookeeper]
    servers={{ .Values.config.zookeeperServers }}
    timeout=6
    root-path="/burrow"
</code></pre>

<p>and in the values.yaml, I put:</p>

<pre><code>  zookeeperServers: [ "abc.2181", "cde.2181"]
</code></pre>

<p>However, the rendered value became:</p>

<pre><code>apiVersion: v1
kind: ConfigMap
data:
  burrow.toml: |
    [zookeeper]
    servers=[abc.2181 cde.2181]
    timeout=6
    root-path="/burrow"
</code></pre>

<p>The comma is missing. Is there a good way to template this correctly? Thanks!</p>

ustcyue
<p>Here is one solution, in the values.yaml
put </p>

<pre><code>zookeeperServers: |
[ "abc.2181", "cde.2181"]
</code></pre>

<p>solves the problem.</p>
