fix(state): conditionally prepare charts for local helmfile command
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
fb467f38c8
commit
c7af0b67f4
|
|
@ -1372,7 +1372,7 @@ func (st *HelmState) PrepareCharts(helm helmexec.Interface, dir string, concurre
|
||||||
// for a remote chart, so that the user can notice/fix the issue in a local chart while
|
// for a remote chart, so that the user can notice/fix the issue in a local chart while
|
||||||
// a broken remote chart won't completely block their job.
|
// a broken remote chart won't completely block their job.
|
||||||
chartPath = normalizedChart
|
chartPath = normalizedChart
|
||||||
if helmfileCommand == "pull" {
|
if helmfileCommand == "pull" && isLocal {
|
||||||
// copy chart to a temporary directory
|
// copy chart to a temporary directory
|
||||||
chartPath, err = generateChartPath(chartName, dir, release, opts.OutputDirTemplate)
|
chartPath, err = generateChartPath(chartName, dir, release, opts.OutputDirTemplate)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue