-
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
Fix helm lint
fails when global values are used in subcharts
#8514
base: main
Are you sure you want to change the base?
Conversation
ef0eb87
to
344838e
Compare
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
Can you help, take some time to help reivew this pr? Looking forward to your comments |
Is this being merged in and released soon @bacongobbler @wawa0210 ? Having the exact same issue: my
~/git/ql-helm-charts$ helm lint charts/app-template/ --values charts/app-template/values.yaml --values helmatest/internal-api/values.yaml
It shouldnt even be trying to do that since the values.yaml file in my base chart has this:
|
Is there any help needed to get this PR over the finish line? |
What's the current status of this? |
Any update on this? Would love see this past the finish line. |
The community has not responded for too long, if this PR is meaningful, I can try to follow up again |
@wawa0210 In my eyes this i still meaningful |
Any news on this? |
==> Linting testdata/testcharts/chart-with-bad-subcharts | ||
[INFO] Chart.yaml: icon is recommended | ||
[WARNING] templates/: directory not found | ||
[ERROR] : unable to load chart | ||
error unpacking bad-subchart in chart-with-bad-subcharts: validation: chart.metadata.name is required | ||
|
||
==> Linting testdata/testcharts/chart-with-bad-subcharts/charts/bad-subchart | ||
[ERROR] Chart.yaml: name is required | ||
[ERROR] Chart.yaml: apiVersion is required. The value must be either "v1" or "v2" | ||
[ERROR] Chart.yaml: version is required | ||
[INFO] Chart.yaml: icon is recommended | ||
[WARNING] templates/: directory not found | ||
[ERROR] : unable to load chart | ||
validation: chart.metadata.name is required | ||
|
||
==> Linting testdata/testcharts/chart-with-bad-subcharts/charts/good-subchart | ||
[INFO] Chart.yaml: icon is recommended | ||
[WARNING] templates/: directory not found | ||
|
||
Error: 3 chart(s) linted, 2 chart(s) failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a lot of context is lost.
@wawa0210 If you're still interested in this, it'll need a rebase. |
Signed-off-by: wawa0210 xiaozhang0210@hotmail.com
Fix #8489
Introduced by #7288
What this PR does / why we need it:
When using helm lint
--with-subcharts
, the values.yaml data of the parent directory is not transferred to the subdirectory, resulting in missing global values, and helm lint failureSpecial notes for your reviewer:
If applicable: