Skip to content

[backport] bugfix: Override subcharts with null values - #13654

Merged
gjenkins8 merged 4 commits into
helm:dev-v3from
ryanhockstad:subchart-null
Jan 27, 2025
Merged

gjenkins8 merged 4 commits into
helm:dev-v3from
ryanhockstad:subchart-null

Conversation

@ryanhockstad

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Backport of this PR.
Special notes for your reviewer:

ryanhockstad and others added 4 commits March 19, 2024 15:26
Signed-off-by: Ryan Hockstad <[email protected]>
- Add consistency for null test in given values, parent chart, subchart, and
  sub-sub-chart
- Remove bar null test to keep consistent with boat=null at top level

Signed-off-by: Scott Rigby <[email protected]>
@pull-request-size pull-request-size Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 23, 2025
@ryanhockstad ryanhockstad changed the title Subchart null [backport] bugfix: Override subcharts with null values Jan 23, 2025
@pierluigilenoci

Copy link
Copy Markdown

@scottrigby @joejulian, could you please approve?

@pierluigilenoci

Copy link
Copy Markdown

@ryanhockstad, thank you!

@scottrigby scottrigby left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exact same commits as #12879, this code still applies from main to dev-v3 branch, still passes tests, etc. lgtm 👍

@scottrigby scottrigby added the Has One Approval This PR has one approval. It still needs a second approval to be merged. label Jan 27, 2025
@scottrigby scottrigby added this to the 3.17.1 milestone Jan 27, 2025
@gjenkins8
gjenkins8 merged commit 80f87ab into helm:dev-v3 Jan 27, 2025
@mattfarina mattfarina added the picked Indicates that a PR has been cherry-picked into the next release candidate. label Feb 12, 2025
simu added a commit to projectsyn/component-mimir that referenced this pull request Feb 25, 2025
…h Helm 3.17.1

Helm 3.17.1 has fixed a long-standing bug which affects how sub-chart
values are merged in helm/helm#13654. The
Commodore 1.27.3 image uses Helm 3.17.1.

Somehow, the fix breaks the suggested configuration for the
mimir-distributed chart when setting `rbac.type=scc`, since the `null`
value overrides for the sub-chart fields are now explicitly visible as
fields with value `null`.

This breaks the validation logic which checks the presence of the fields
We adjust the validation by copying a fixed `validate.yaml` into the
downloaded helm chart. However, this now injects `null` values in the
rendered manifest, so we also add a postprocessing filter to delete
those nulls.
simu added a commit to projectsyn/component-mimir that referenced this pull request Jan 20, 2026
…h Helm 3.17.1

Helm 3.17.1 has fixed a long-standing bug which affects how sub-chart
values are merged in helm/helm#13654. The
Commodore 1.27.3 image uses Helm 3.17.1.

Somehow, the fix breaks the suggested configuration for the
mimir-distributed chart when setting `rbac.type=scc`, since the `null`
value overrides for the sub-chart fields are now explicitly visible as
fields with value `null`.

This breaks the validation logic which checks the presence of the fields
We adjust the validation by copying a fixed `validate.yaml` into the
downloaded helm chart. However, this now injects `null` values in the
rendered manifest, so we also add a postprocessing filter to delete
those nulls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Has One Approval This PR has one approval. It still needs a second approval to be merged. picked Indicates that a PR has been cherry-picked into the next release candidate. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants