<p>I'm running a <code>helm upgrade</code> command to install a certain chart. Of one the values I need to set is like this:</p>
<pre><code>helm upgrade --install someService someChart `
             --set coredns.service.annotations.&quot;service\.beta\.kubernetes\.io/azure-load-balancer-internal&quot;=&quot;true&quot;
</code></pre>
<p>I have used this successfully with other charts but on this particular chart I'm getting the error</p>
<pre><code>Error: unable to build kubernetes objects from release manifest: unable to decode &quot;&quot;: json: cannot unmarshal bool into Go struct field ObjectMeta.metadata.annotations of type string
</code></pre>
<p>So it looks like helm is automatically converting that <code>true</code> into a bool. I already tried to use <code>=&quot;\&quot;true\&quot;&quot;</code> but that also didn't help.</p>
<p>Any ideas how to tell helm to not convert this to bool? (I do not have control over the helm  chart)</p>

silent
<p>You can use <code>helm upgrade --set-string</code> to force Helm to interpret the value as a string.</p>
<pre class="lang-bash prettyprint-override"><code>helm upgrade --install someService someChart \
             --set-string coredns...=true
</code></pre>
<p>Note that <code>helm install --set</code> has somewhat unusual syntax and quoting rules; you're already seeing this with the need to escape periods within a value name.  You might find it clearer to write a YAML (or JSON) file of installation-specific values and pass that with a <code>helm install -f</code> option.</p>
<pre class="lang-yaml prettyprint-override"><code>coredns:
  service:
    annotations:
      service.beta.kubernetes.io/azure-load-balancer-internal: &quot;true&quot;
</code></pre>
<pre class="lang-bash prettyprint-override"><code>helm upgrade --install someService someChart \
             -f local-values.yaml
</code></pre>
<p>This is a separate file from the <code>values.yaml</code> file that's part of the chart, and its values are merged with the chart's values with the local values taking precedence.</p>
