<p>values.yaml</p>
<pre><code>S3Catalogs:
  Catalogs:
    - CatalogName: BotVoice
      Url: &quot;http://sandbox5.*.com&quot;
    - CatalogName: WrongVoice
      Url: &quot;http://sandbox5.*.com&quot;
</code></pre>
<p>the structure specified above needs to be filled in somehow in deployment.yaml
tried different variants, with brackets [0] does not accept.</p>
<pre><code>        - name: S3Catalogs__Catalogs
          value: &quot;{{ .Values.S3Catalogs.Catalogs  }}&quot;
        - name: S3Catalogs__Catalogs__Url
          value: &quot;{{ .Values.S3Catalogs.Catalogs.Url}}&quot;
</code></pre>
<p>that's not how it works</p>

<p>I think you were on the right path using <code>0</code> (and presumably <code>1</code>) to access elements of the <code>S3Catalogs</code> array in your <code>values.yaml</code> file.</p>
<p>The following syntax works for me:</p>
<p>deployment.yaml:</p>
<pre><code>  - name: S3Catalogs__Catalogs__CatalogName_0
    value: &quot;{{ index .Values.S3Catalogs.Catalogs 0 &quot;CatalogName&quot; }}&quot;
  - name: S3Catalogs__Catalogs__Url_0
    value: &quot;{{ index .Values.S3Catalogs.Catalogs 0 &quot;Url&quot; }}&quot;
  - name: S3Catalogs__Catalogs__CatalogName_1
    value: &quot;{{ index .Values.S3Catalogs.Catalogs 1 &quot;CatalogName&quot; }}&quot;
  - name: S3Catalogs__Catalogs__Url_1
    value: &quot;{{ index .Values.S3Catalogs.Catalogs 1 &quot;Url&quot; }}&quot;
</code></pre>
<p>values.yaml:</p>
<pre><code>S3Catalogs:
  Catalogs:
    - CatalogName: BotVoice
      Url: &quot;http://sandbox5.foo.com&quot;
    - CatalogName: WrongVoice
      Url: &quot;http://sandbox5.bar.com&quot;
</code></pre>
<p>When I do a <code>helm template</code>, following is the result:</p>
<pre><code>- name: S3Catalogs__Catalogs__CatalogName_0
  value: &quot;BotVoice&quot;
- name: S3Catalogs__Catalogs__Url_0
  value: &quot;http://sandbox5.foo.com&quot;
- name: S3Catalogs__Catalogs__CatalogName_1
  value: &quot;WrongVoice&quot;
- name: S3Catalogs__Catalogs__Url_1
  value: &quot;http://sandbox5.bar.com&quot;
</code></pre>
<p>Is this something that'll work out for you?</p>
