<p>I've created a chart which requires a helm chart from <a href="https://github.com/helm/charts/tree/master/stable" rel="noreferrer">stable/charts</a>, lets say <a href="https://github.com/helm/charts/tree/master/stable/mongodb" rel="noreferrer">mongodb</a>. Although you can define a <a href="https://github.com/helm/helm/blob/master/docs/helm/helm_dependency_list.md" rel="noreferrer">requirements.yaml</a> file I was wondering if it is possible to define a chart in here?</p>

<p>Furthermore, to make things easier (not) I need to replace some values for the mongodb chart as well. Not sure if I'm pushing the limits here to much :) It looks like a subchart relation, so it sounds possible.</p>

<p>The alternative, which I'm using now is to first install the stable/chart and then my custom chart. But it would be an improvement if I could reduce this to one <code>helm</code> command just by adding this dependency to my custom chart</p>

<p><strong>Update</strong>: </p>

<p>I will update this post with my findings and hopefully this will eventually lead to the solution :) The <code>requirements.yaml</code> so far:</p>

<pre><code>dependencies:
  - name: "mongodb"
    version: "4.x.x"
    repository: "@stable"
    import-values:
      - child: default.data
        parent: myimports
</code></pre>

<p>Not sure yet how I can use <code>import-values</code> to customize mongodb, but for now I'm stuck on the following error</p>

<pre><code>Error: found in requirements.yaml, but missing in charts/ directory: mongodb
</code></pre>

<p>Also, because I'm using <code>stable</code> I'm not sure what to do with the <code>version</code> field</p>

<p>Useful links: <a href="https://helm.sh/docs/developing_charts/#using-the-child-parent-format" rel="noreferrer">link</a>, <a href="https://stackoverflow.com/questions/55748639/set-value-in-dependency-of-helm-chart">link</a></p>

<p>since helm 2.2.0, you can store the mongodb chart at the same directory and in your <code>requirements.yaml</code> file refer to it as:</p>

<pre><code>dependencies:

- name: mongodb
  version: "&lt;the_mongo_chart_version&gt;"
  repository: "file://../mongodb"
</code></pre>

<p>thats way you can play with the values and deploy the whole thing with 1 helm command.</p>

<p>for more information refer to </p>

<p><a href="https://github.com/helm/helm/blob/master/docs/helm/helm_dependency.md" rel="nofollow noreferrer">https://github.com/helm/helm/blob/master/docs/helm/helm_dependency.md</a></p>
