Conditions, Tags, and Global Values
Toggling subcharts and sharing globals across them.
Conditions, Tags, and Global Values is a free Helm Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Helm Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Not Every Subchart Is Always Needed
Sometimes you want a bundled database off in production but on for local testing. Helm lets you toggle subcharts with conditions and tags.
The condition Field
In Chart.yaml a dependency's condition names a boolean value path. When that value is true the subchart installs; when false it is skipped.
- name: postgresql
version: "15.5.0"
repository: "@bitnami"
condition: postgresql.enabledWire the Boolean in values.yaml
The path named by condition points at a value you control. Most charts use the subchart-name enabled flag by convention.
postgresql:
enabled: trueToggle at Install Time
Because it is just a value, you can flip a condition from the CLI to disable a subchart for one install without editing files.
helm install web ./mychart \
--set postgresql.enabled=falseTags Group Subcharts
A tags entry labels a dependency so several subcharts can be toggled together. One tag can switch a whole feature on or off.
- name: redis
version: "19.0.1"
repository: "@bitnami"
tags:
- cacheControl Tags From the Top
You enable or disable a tag under a top-level tags map in values.yaml. Setting it false skips every subchart that carries that tag.
tags:
cache: falsecondition Beats tags
If both apply, a subchart's condition wins over its tags. The explicit per-chart flag overrides the broader group toggle.
Global Values Reach Everywhere
Values under the special global key are shared with the parent and all subcharts at once. They are perfect for cluster-wide settings.
global:
imageRegistry: my-registry.io
storageClass: fast-ssdRead Globals as .Values.global
Any template, parent or subchart, reads shared data through .Values.global. That is how subcharts pick up one common registry or domain.
image: {{ .Values.global.imageRegistry }}/app:1.0Globals Are the Only Shared Scope
Normal parent values stay private to the parent. Only the global block crosses the boundary into every subchart automatically.
Use Each Tool for Its Job
Reach for condition to toggle one subchart, tags to toggle a group, and global to share settings. Together they keep big charts flexible.
Quick Check
You want one registry value visible to your chart and every subchart. Where does it go?
Recap: Conditions, Tags, Globals
You learned to toggle a subchart with condition, switch groups with tags, and share settings via global. condition always beats tags. 🌐
Frequently asked questions
Is the “Conditions, Tags, and Global Values” lesson free?
Yes — the full text of “Conditions, Tags, and Global Values” is free to read here on the web, and the Helm Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Helm Academy course, upgrade to CoddyKit PRO.
What will I learn in “Conditions, Tags, and Global Values”?
Toggling subcharts and sharing globals across them. You practise Helm Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Helm Academy?
No prior experience is required. Helm Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Conditions, Tags, and Global Values” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Helm Academy lesson?
Yes. Every Helm Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Declaring Dependencies in Chart.yaml
- Vendoring with helm dependency update
- Configuring Subcharts from Parent Values
- Conditions, Tags, and Global Values