title: Reference previously declared value in HELM values.yaml
body: <p>I have a HELM Chart with a few requirements (i.e. subcharts).  </p>
  
  <p>When deploying that chart, I use a <code>values.yaml</code> containing all the values for both the main chart and the subcharts :</p>
  
  <pre><code>globalFoo: "bar"
  
  subchart1:
    foo: subchart1-{{ globalFoo }}
  
  subchart2:
    localFoo: "bar2"
    foo: subchart2-{{ subchart2.localFoo }}
  </code></pre>
  
  <p>I'd like to achieve two things :  </p>
  
  <ul>
  <li>Reference a previously declared global variable (i.e. in the global chart scope) in a subchart value <em>(subchart1.foo</em> in my example)</li>
  <li>Reference a previously declared local variable in the same subchart scope <em>(subchart2.foo</em> in my example)</li>
  </ul>
  
  <p>The exemple above doesn't work. I tried several syntaxes and none of them worked. I didn't find anything like that in the HELM documentation.</p>
  
  <p>Is it doable ?</p>