-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Kustomize/helmCharts: omitting helmChart.repo value does not fallback cleanly to local chartHome #5818
Comments
This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Closing issue, the empty harbor-1.16.0.tgz folder had not been copied |
Reopening with more details - can reproduce consistently now |
func (p *plugin) absChartHome() string {
var chartHome string
if filepath.IsAbs(p.ChartHome) {
chartHome = p.ChartHome
} else {
chartHome = filepath.Join(p.h.Loader().Root(), p.ChartHome)
}
if p.Version != "" && p.Repo != "" {
return filepath.Join(chartHome, fmt.Sprintf("%s-%s", p.Name, p.Version))
}
return chartHome
} should be func (p *plugin) absChartHome() string {
var chartHome string
if filepath.IsAbs(p.ChartHome) {
chartHome = p.ChartHome
} else {
chartHome = filepath.Join(p.h.Loader().Root(), p.ChartHome)
}
if p.Version != "" {
return filepath.Join(chartHome, fmt.Sprintf("%s-%s", p.Name, p.Version))
}
return chartHome
} |
Signed-off-by: Anthony ARNAUD <[email protected]>
What happened?
This documentation page specifies a way to load a local Chart by omitting helmCharts.repo value and specifying helmGlobals.chartHome instead.
This method does not work, as chartHome does not appear to be taken into account at all:
What did you expect to happen?
Helm chart should be loaded from mycharts/
How can we reproduce it (as minimally and precisely as possible)?
Get the chart by using the valid remote repo:
$ tree -L 3 . └── kustomization.yaml 0 directories, 1 file
Try to load the chart from the local custom repo by commenting helmCharts.repo:
Dirty workaround: set different value for helmGlobals.chartHome, specifying one folder down:
Command now runs:
Expected output
Rendered Helm chart
Actual output
Error: no repo specified for pull, no chart found at ''
Kustomize version
5.5.0
Operating system
Linux
The text was updated successfully, but these errors were encountered: