<p>I'm trying to run a helm chart with:</p>
<pre><code>helm upgrade --install artifactory-int --set ingress.annotations.'kubernetes\.io\/tls-acme'=&quot;true&quot;
</code></pre>
<p>But this drops an error message:</p>
<pre><code>Ingress in version &quot;v1beta1&quot; cannot be handled as a Ingress: v1beta1.Ingress.ObjectMeta: v1.ObjectMeta.Annotations: ReadString: expects &quot; or n, but found t, error found in #10 byte of ...|ls-acme&quot;:true},&quot;labe|..., bigger context ...|tadata&quot;:{&quot;annotations&quot;:{&quot;kubernetes.io/tls-acme&quot;:true},&quot;labels&quot;:{&quot;app&quot;:&quot;artifactory&quot;,&quot;chart&quot;:&quot;artifa|...
</code></pre>
<p>The error message is expecting <strong>&quot;</strong> or <strong>n</strong></p>
<p>When configuring values.yaml (see following code lines) --&gt; everything works fine,...</p>
<pre><code>ingress:
  annotations:
    kubernetes.io/tls-acme: &quot;true&quot;
</code></pre>
<p>...but I want to set the parameter with &quot;--set&quot; within the helm install command instead of manipulating the values.yaml</p>
<p><strong>The ingress template is giving me the folloing information:</strong></p>
<pre><code>metadata:
{{- if .Values.ingress.annotations }}
  annotations:
{{ .Values.ingress.annotations | toYaml | trimSuffix &quot;\n&quot; | indent 4 -}}
{{- end }}
</code></pre>
<p><strong>I tried several variatons of set, some of them passed the &quot;ReadString&quot; issue, but ingress annotaion is not set correctly.</strong></p>
<h1>some examples</h1>
<pre><code>--set ingress.annotations.'kubernetes\.io\/tls-acme'=true'&quot;'
--&gt;
metadata:
  annotations:
    kubernetes.io/tls-acme: true&quot;

--set ingress.annotations.'kubernetes\.io\/tls-acme'=&quot;true\n&quot;
--&gt;
metadata:
  annotations:
    kubernetes.io/tls-acme: truen

--set ingress.annotations.'kubernetes\.io\/tls-acme'='\&quot;true\&quot;'
--&gt;
metadata:
  annotations:
    kubernetes.io/tls-acme: '&quot;true&quot;'
</code></pre>
<h1>What is need to be set to get the following results?</h1>
<pre><code>--set ingress.annotations.'kubernetes\.io\/tls-acme'=???????
--&gt;
metadata:
  annotations:
    kubernetes.io/tls-acme: true
</code></pre>

<p>To set string forcely you can run following</p>

<pre><code>
--set-string ingress.annotations.'kubernetes\.io\/tls-acme'="true"

</code></pre>
