<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>As a general rule of thumb I always have</p>

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

<p>in every file in every subchart. Depending on situation the default value will be either <code>true</code> for regular components or <code>false</code> for dev related, or simply <code>false</code> for everything if I want to enable these in completely selective manner. A typical values for deployment for this approach looks like ie.:</p>

<pre><code>api:
  enabled: true
  database:
    host: mysql-dev

mysql:
  enabled: false

mysql-dev:
  enabled: true
</code></pre>
