Skip to content

Commit 7887346

Browse files
committed
allow using helmChart without repo URL.
Signed-off-by: Anthony ARNAUD <[email protected]>
1 parent a8c5b10 commit 7887346

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api/internal/builtins/HelmChartInflationGenerator.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (p *plugin) absChartHome() string {
159159
chartHome = filepath.Join(p.h.Loader().Root(), p.ChartHome)
160160
}
161161

162-
if p.Version != "" && p.Repo != "" {
162+
if p.Version != "" {
163163
return filepath.Join(chartHome, fmt.Sprintf("%s-%s", p.Name, p.Version))
164164
}
165165
return chartHome

plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ releaseName: %s
849849
assert.True(t, len(rm.Resources()) > 0)
850850

851851
var chartDir string
852-
if tt.version != "" && tt.repo != "" {
852+
if tt.version != "" {
853853
chartDir = fmt.Sprintf("charts/%s-%s/%s", tt.chartName, tt.version, tt.chartName)
854854
} else {
855855
chartDir = fmt.Sprintf("charts/%s", tt.chartName)

0 commit comments

Comments
 (0)