mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-07 05:07:09 +02:00
+1
-5
@@ -67,7 +67,7 @@ func (st *HelmState) goGetterChart(chart, dir, cacheDir string, force bool) (str
|
||||
}
|
||||
|
||||
if filepath.IsAbs(chart) || strings.HasPrefix(chart, ".") {
|
||||
return chart, fmt.Errorf("chart path %q not found", chart)
|
||||
return "", fmt.Errorf("chart path %s not found", chart)
|
||||
}
|
||||
|
||||
if strings.HasPrefix(chart, "oci://") {
|
||||
@@ -136,10 +136,6 @@ func (st *HelmState) PrepareChartify(helm helmexec.Interface, release *ReleaseSp
|
||||
}
|
||||
}
|
||||
|
||||
if filepath.IsAbs(dependenceChart) {
|
||||
dependenceChart = fmt.Sprintf("file://%s", dependenceChart)
|
||||
}
|
||||
|
||||
c.Opts.AdhocChartDependencies = append(c.Opts.AdhocChartDependencies, chartify.ChartDependency{
|
||||
Alias: d.Alias,
|
||||
Chart: dependenceChart,
|
||||
|
||||
@@ -28,6 +28,34 @@ func TestGoGetter(t *testing.T) {
|
||||
out: "raw/incubator",
|
||||
err: "",
|
||||
},
|
||||
{
|
||||
chart: "oci://my-oci-registry/helm-repo/envoy",
|
||||
dir: "",
|
||||
force: false,
|
||||
out: "oci://my-oci-registry/helm-repo/envoy",
|
||||
err: "",
|
||||
},
|
||||
{
|
||||
chart: "testdata",
|
||||
dir: "",
|
||||
force: false,
|
||||
out: "testdata",
|
||||
err: "",
|
||||
},
|
||||
{
|
||||
chart: "./testdata",
|
||||
dir: "",
|
||||
force: false,
|
||||
out: "./testdata",
|
||||
err: "",
|
||||
},
|
||||
{
|
||||
chart: "./noexist",
|
||||
dir: "",
|
||||
force: false,
|
||||
out: "",
|
||||
err: "chart path ./noexist not found",
|
||||
},
|
||||
}
|
||||
|
||||
for i, tc := range testcases {
|
||||
|
||||
Reference in New Issue
Block a user