-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
helm lint
fails when global values are used in subcharts
#8489
Comments
Adding empty values in the subchart keeps global:
foo: "" |
Can you try this with v3.3.0-rc.1? I tried to replicate the problem there and was unable to. |
I can reproduce this with v3.1.3, v3.2.4 and now v3.3.0-rc.1. My specific use-case is that the parent chart has this in global:
hostname: foobar.com The sub-chart then uses global:
hostname: "" |
I reproduced this issue, as @allanlewis said, only need to specify /assign the ref #7288 |
I have a similar issue on helm 3.3.4: I can't use subchart values on the main chart on |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
version.BuildInfo{Version:"v3.4.2", GitCommit:"23dd3af5e19a02d4f4baa5b2f242645a1a3af629", GitTreeState:"dirty", GoVersion:"go1.15.5"} I have a similar issue when using dependency charts. I experience a similar error ("Additional property global is not allowed"), unless I modify the values.schema.json of the dependency chart. I add |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
Still facing this issue with latest Helm version. Can this issue be reopened? |
BTW this only works if your subcharts are not trying to access nested objects within global:
image: {} Which can be very boring depending on the chart. The PR below fixes the issue: And it was very simple. Too bad it never got merged. |
When using global chart values,
helm lint
complains about theglobal
key not being present in the subchart, even though it's supposed to be reserved and available to subcharts. Actually building the chart works, it's just the linter that complains. The error is like this:The text was updated successfully, but these errors were encountered: