<p>I have the following values file:</p>
<pre><code>MYVAR: 12123
MYVAR2: 214123
</code></pre>
<p>I want to iterate over them and use them as env variables in my deployment template:</p>
<pre><code>env:
    {{- range .Values.examplemap }}
    - name: {{ .name }}
      value: {{ .value }}
    {{- end }}
</code></pre>
<p>I tried this</p>

Icarus
<p>For iterate over a map in helm you can try put this in the <strong>values.yaml</strong></p>
<pre><code> extraEnvs:
   - name: ENV_NAME_1
     value: value123
   - name: ENV_NAME_2
     value: value123
</code></pre>
<p>So in your <strong>template</strong> you must iterate the extraEnvs like this:</p>
<pre><code> extraEnvs:
   {{- range .Values.image.extraEnvs }}
     - name: {{ .name | quote }}
       value: {{ .value | quote }}
   {{- end }}
</code></pre>
