<p>I am trying to quote my annotation values. I am trying like this</p>

<pre><code>annotations:
  {{- range $key, $value := .Values.ingress.annotations }}
     {{ $key }}: {{ printf "%s" $value | quote }}
  {{- end }}
</code></pre>

<p>and this</p>

<pre><code>annotations:
  {{- range $key, $value := .Values.ingress.annotations }}
     {{ $key }}: "{{ $value }}"
  {{- end }}
</code></pre>

<p>this is my values.yaml  </p>

<pre><code>annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/force-ssl-redirect: false
</code></pre>

<p>but it is not working. Even if I double quote the annotation value in values.yaml helm is removing the quote. Can somebody tell me how can I get helm with double quote values in annotation?</p>

<p>I am using Helm version 3.</p>

<p>You could try this:</p>

<pre><code>annotations:
  {{- range $key, $value := .Values.ingress.annotations }}
     {{ $key }}: {{ $value | quote }}
  {{- end }}
</code></pre>
