Skip to content

Commit

Permalink
fix kubernetes-sigs#5818 allow using helmChart without repo URL.
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony ARNAUD <github@anthony-arnaud.fr>
  • Loading branch information
aarnaud committed Dec 3, 2024
1 parent a8c5b10 commit aab14c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/internal/builtins/HelmChartInflationGenerator.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (p *plugin) absChartHome() string {
chartHome = filepath.Join(p.h.Loader().Root(), p.ChartHome)
}

if p.Version != "" && p.Repo != "" {
if p.Version != "" {
return filepath.Join(chartHome, fmt.Sprintf("%s-%s", p.Name, p.Version))
}
return chartHome
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ releaseName: %s
assert.True(t, len(rm.Resources()) > 0)

var chartDir string
if tt.version != "" && tt.repo != "" {
if tt.version != "" {
chartDir = fmt.Sprintf("charts/%s-%s/%s", tt.chartName, tt.version, tt.chartName)
} else {
chartDir = fmt.Sprintf("charts/%s", tt.chartName)
Expand Down

0 comments on commit aab14c3

Please sign in to comment.