<p>I want to use the <a href="https://github.com/helm/charts/tree/master/stable/postgresql" rel="noreferrer">postgresql chart</a> as a requirements for my Helm chart.</p>

<p>My <code>requirements.yaml</code> file hence looks like this:</p>

<pre><code>dependencies:
  - name: "postgresql"
    version: "3.10.0"
    repository: "@stable"
</code></pre>

<p>In the postgreSQL Helm chart I now want to set the username with the property <code>postgresqlUsername</code> (see <a href="https://github.com/helm/charts/tree/master/stable/postgresql" rel="noreferrer">https://github.com/helm/charts/tree/master/stable/postgresql</a> for all properties).</p>

<p>Where do I have to specify this property in my project so that it gets propagated to the postgreSQL dependency?</p>

<p>As described in <a href="https://v2.helm.sh/docs/chart_template_guide/#subcharts-and-global-values" rel="noreferrer">https://v2.helm.sh/docs/chart_template_guide/#subcharts-and-global-values</a>, in your parent (i.e. not the dependency) chart's <code>values.yaml</code> file, have a section that contains</p>

<pre><code>postgresql:
  postgresUsername: ....
  postgresPassword: ....
  ...
</code></pre>

<p>That is, all values under the <code>postgresql</code> key will override the child (<code>postgresql</code>) chart's <code>values.yaml</code> values. Note that if you have aliased the <code>postgresql</code> dependency chart to another name in your <code>requirements.yaml</code>, you should use that other name instead of <code>postgresql</code>.</p>

<p>edit: The corresponding article in v3 is here <a href="https://helm.sh/docs/chart_template_guide/subcharts_and_globals/" rel="noreferrer">https://helm.sh/docs/chart_template_guide/subcharts_and_globals/</a></p>
