<p>I have a few helm charts (each one is a microservice) but a few of them are dependent on
a common chart (some secrets, pvcs, etc)
It is possible to declare dependency between charts and the common chart but if a package
already installed as dependency - the helm chart installation will fail.</p>
<p>I am looking for a way to install a helm chart with dependencies but if one of the dependent charts is already installed, ingone or print a massage but not fail the installation process.</p>
<p>Is there any smart way to handle that ?
Like, check if a prerequisite chart has already been installed and bypass it without failed the whole process.
Thx</p>

Demi Goldberg
<p>Ideally you can give dependencies using</p>
<p><a href="https://helm.sh/docs/helm/helm_dependency/" rel="nofollow noreferrer">https://helm.sh/docs/helm/helm_dependency/</a></p>
<pre><code># Chart.yaml
dependencies:
- name: nginx
  version: &quot;1.2.3&quot;
  repository: &quot;https://example.com/charts&quot;
- name: memcached
  version: &quot;3.2.1&quot;
  repository: &quot;https://another.example.com/charts&quot;
</code></pre>
<blockquote>
<p>Helm charts store their dependencies in 'charts/'. For chart
developers, it is often easier to manage dependencies in 'Chart.yaml'
which declares all dependencies.</p>
<p>The dependency commands operate on that file, making it easy to
synchronize between the desired dependencies and the actual
dependencies stored in the 'charts/' directory.</p>
</blockquote>
<p>You can also use the sub chart and parent chart format to manage the dependencies</p>
<p>Folder structure something will go like this</p>
<pre><code>├── Chart.yaml
├── charts
│   └── django
│       ├── Chart.yaml
│       ├── templates
│       │   ├── deployment.yaml
│       │   ├── ingress.yaml
│       │   └── service.yaml
│       └── values.yaml
├── templates
└── values.yaml
</code></pre>
<p>For example : <a href="https://medium.com/craftech/one-chart-to-rule-them-all-3f685e0f25a9" rel="nofollow noreferrer">https://medium.com/craftech/one-chart-to-rule-them-all-3f685e0f25a9</a></p>
<p>You can also read more at official documentation : <a href="https://helm.sh/docs/chart_template_guide/subcharts_and_globals/" rel="nofollow noreferrer">https://helm.sh/docs/chart_template_guide/subcharts_and_globals/</a></p>
<blockquote>
<p>To this point we have been working only with one chart. But charts can
have dependencies, called subcharts, that also have their own values
and templates. In this section we will create a subchart and see the
different ways we can access values from within templates.</p>
</blockquote>
