<p>I'm writing a helm chart by making use of a dependency chart available in a chart repository.
Below is my Chart.yaml</p>
<pre><code>appVersion: &quot;1.2&quot;
description: Helm chart for installation and maintenance of Test charts.
name: child-chart
version: 0.2.0

dependencies:
- name: parent-chart
  version: 1.0.9
  repository: https://testrepo.com/
  enter code here
</code></pre>
<p>The values.yaml of my parent-chart is having the below entry</p>
<pre><code>testboard:
  enabled: true
  replicaCount: &quot;1&quot;
  appName: &quot;test-operator&quot;
</code></pre>
<p>I tried to use this name in my child chart by making use of {{.Values.testboard.appName}}, but this value is coming as <strong>null</strong>. When I gave {{.Values.parent-chart.testboard.appName}} it is failing with an error bad character U+002D '-'</p>
<p>How I should modify my helm template to get the correct values from my dependency chart</p>

mystack
<p>First, I'd like to point out that <em>usually</em> we refer to <em>child</em> charts as the ones our <em>parent</em> chart depends on. To be more clearer, let's call those <a href="https://helm.sh/docs/chart_template_guide/subcharts_and_globals/" rel="nofollow noreferrer">subcharts</a></p>
<p>To answer your question, if you have something like this in the subchart <code>values.yaml</code>:</p>
<pre class="lang-yaml prettyprint-override"><code>testboard:
  appName: something
</code></pre>
<p>this in the parent chart:</p>
<pre class="lang-yaml prettyprint-override"><code>dependencies:
- name: subchart
  version: x.x.x
  repository: https://does-not-matter
  alias: alias-for-subchart # &lt;&lt; this is optional!
</code></pre>
<p>you can override <code>testboard.appName</code> from the parent chart like this:</p>
<pre class="lang-yaml prettyprint-override"><code>alias-for-subchart:
  testboard:
    appName: something-else
</code></pre>
<p>if you provide an alias or</p>
<pre class="lang-yaml prettyprint-override"><code>subchart:
  testboard:
    appName: something-else
</code></pre>
<p>if you don't.</p>
<p>More explanations in the linked documentation.</p>
