title: How can I access a nested item for a Helm charts custom value file?
body: <p>I'm using the <code>stable/prometheus</code> helm chart and I've configured a custom values file that further configures alertmanager for the chart deployment. I can install the chart via Helm3 without any issues, however, there's one thing I'm not able to figure out. For the <code>Slack Reciever/slack_configs/api_url</code> I want to pass that through the <code>set</code> command so I don't have to keep it hardcoded into file. </p>
  
  <p>I hope I'm on the right path, and here's what I'm thinking of running to access the value.</p>
  
  <pre><code>helm install test-release stable/prometheus -f customALM.yml --set alertmanagerFiles.alertmanager.yml.receivers[0].api_url=https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/xxxxxxxxxxxxxxxxxxxxxxxxxxx
  </code></pre>
  
  <p><strong><code>customALM.yml</code></strong></p>
  
  <pre><code>alertmanagerFiles:
    alertmanager.yml:
          route:
            group_wait: 10s
            group_interval: 5m
            repeat_interval: 30m
            receiver: "slack"
  
            routes:
              - receiver: "slack"
                group_wait: 10s
                match_re:
                  severity: error|warning
                continue: true
  
          receivers:
            - name: "slack"
              slack_configs:
                - api_url: '[howDoIsetThisAtTheCLI?'
                  channel: 'someChannel'
                  text: "Text message template etc."
  </code></pre>
  
  <p><strong>Update 4/8:</strong> I'm making progress thanks to willro! I'm able to get a value inserted but it puts it at the root of the alertmanager block. I've tried a few different combinations to access receivers/slack_configs but no luck yet =/</p>
  
  <pre><code>helm install test-release stable/prometheus -f customALM.yml --set alertmanagerFiles.api_url=PleaseInsertPrettyPlease --dry-run
  </code></pre>
  
  <p><strong>Update 4/9:</strong> I've decided to move the receivers block into a separate file that's encrypted and stored securely. </p>