<p>I have a subchart in <code>charts/</code> directory. I would like to disable it for some deployments.</p>

<p>Is it possible somehow? Currently i see the only way to add condition to all templates like below:</p>

<p>deployment.yaml</p>

<pre><code>{{- if .Values.isDev }}
deployment code
{{- end }}
</code></pre>

<p>service.yaml</p>

<pre><code>{{- if .Values.isDev }}
service code
{{- end }}
</code></pre>

<p>Also, for current version of Helm (2.12 at this time), it is also possible to write a <code>requirements.yaml</code> in which one can specify not only remote charts for Helm to download, but also Charts inside the <code>charts</code> folder. In this <code>requirements.yaml</code> one can specify a <code>condition</code> field for each dependency. This field is the path for a parent's Value.</p>

<p>So, for instance, given this <code>requirements.yaml</code>:  </p>

<pre><code>dependencies:
  - name: one-dep
    version: 0.1.0
    condition: one-dep.enabled
  - name: another-dep
    version: 0.1.0
    condition: another-dep.enabled
</code></pre>

<p>Your <code>values.yaml</code> could have:</p>

<pre><code>one-dep:
  enabled: true

another-dep:
  enabled: false
</code></pre>

<p>This will result in Helm only including <code>one-dep</code> chart.
It's worth noting that if the path specified in the <code>condition</code> does not exist, it defaults to <code>true</code>.</p>

<p><a href="https://docs.helm.sh/developing_charts/#tags-and-condition-fields-in-requirements-yaml" rel="noreferrer">Here's the link to the doc</a></p>
