<p>Use <code>helm</code> install can set value when install a chart like:</p>
<pre><code>helm install --set favoriteDrink=slurm ./mychart
</code></pre>
<p>Now want to set value like:</p>
<pre><code>helm install --set aws.subnets=&quot;subnet-123456, subnet-654321&quot; ./mychart
</code></pre>
<p>But failed:</p>
<pre><code>Error: failed parsing --set data: key &quot; subnet-654321&quot; has no value
</code></pre>
<p>It seems that <code>helm</code>'s <code>--set</code> know comma <code>,</code> and check the next string as a key. So can't use in this case when set such string?</p>
<hr />
<h1>Tested this way</h1>
<pre><code>helm install charts/mychart \
    --set aws.subnets={subnet-123456,subnet-654321}
</code></pre>
<p>Got error:</p>
<pre><code>Error: This command needs 1 argument: chart name
</code></pre>
<h1>This way works</h1>
<pre><code>helm install charts/mychart \
    --set aws.subnets=&quot;subnet-123456\,subnet-654321&quot;
</code></pre>
<h2>Reference</h2>
<blockquote>
<p><a href="https://helm.sh/docs/intro/using_helm/#the-format-and-limitations-of---set" rel="noreferrer">https://helm.sh/docs/intro/using_helm/#the-format-and-limitations-of---set</a></p>
</blockquote>

<p>According to <a href="https://github.com/kubernetes/helm/issues/1987#issuecomment-280497496" rel="noreferrer">https://github.com/kubernetes/helm/issues/1987#issuecomment-280497496</a>, you set multiple values using curly braces, for example:</p>

<pre><code>--set foo={a,b,c}
</code></pre>

<p>So, in your case it would be like this</p>

<pre><code>--set aws.subnets={subnet-123456,subnet-654321}
</code></pre>
