helm
helm copied to clipboard
tag AND condition logic in subcharts
Currently, Helm evaluates subchart dependencies using condition OR tag.
Example:
Chart.yaml:
dependencies:
- name: item-a
condition: item-a.enabled
tags:
- group-a
- name: item-b
condition: item-b.enabled
tags:
- group-a
values.yaml:
tags:
group-a: false
item-a:
enabled: true
Observed behavior:
Even though the tag group-a is set to false, item-a is still installed because the enabled condition is true.
This makes it impossible to fully disable a group of charts using tags alone.
Expected behavior:
- If
tags.group-ais false, all charts under that tag should not install, even ifenabled=true.
Desired behavior table:
| tag | enabled | Installed? |
|---|---|---|
| false | true | ❌ No |
| true | false | ❌ No |
| true | true | ✅ Yes |
| false | false | ❌ No |
Hi, I have tried to fix the issue using AND logic, let me know your thoughts on this