helm icon indicating copy to clipboard operation
helm copied to clipboard

tag AND condition logic in subcharts

Open odev-swe opened this issue 3 weeks ago • 1 comments

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-a is false, all charts under that tag should not install, even if enabled=true.

Desired behavior table:

tag enabled Installed?
false true ❌ No
true false ❌ No
true true ✅ Yes
false false ❌ No

odev-swe avatar Dec 04 '25 07:12 odev-swe

Hi, I have tried to fix the issue using AND logic, let me know your thoughts on this

syedazeez337 avatar Dec 05 '25 09:12 syedazeez337