Repository navigation
fix(helm): add the global key unrestricted - #2289
Merged
Merged
Conversation
Helm dependency mechanism would inject a `global` key if the chart is used as a dependency. Without the key in the schema, this would break the capability to use the chart as another chart dependency.
jhrozek
approved these changes
Oct 14, 2026
jhrozek
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the contribution!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Helm injects a
globalkey into a subchart's values when the chart is used as adependency of another chart.
values.schema.jsonsetsadditionalProperties: falseand had no
globalproperty, so installing a parent chart that depends onmecak8sfailed schema validation.
This adds
globalto the schema as an unrestrictedobject. Helm owns the contentsof
globaland shares them across all subcharts, so the schema deliberately does notconstrain its keys.
Issue relationship
Fixes #2287
Type of change
Test plan
Baseline checks
task lint)task test)task test:race)go run ./cmd/mecademo)task docs)task site:build)task api:check)task api:update+engine/CHANGELOG.mdChanges
deploy/helm/mecak8s/values.schema.jsonglobal(typeobject) to the allowed top-level propertiesUser-facing change
The
mecak8schart can now be used as a dependency of another chart. Before, theinjected
globalvalues madehelm installorhelm lintfail on the parent chart.Special notes for reviewers
globalis intentionally unconstrained (type: objectonly). By Helm convention,its keys are defined by the parent chart, not by the subchart.
.Values.global, so there is no template change.