From af69d1ba9763a2f78dd2eb1a1e4070b1e3e56b44 Mon Sep 17 00:00:00 2001 From: Shane Starcher Date: Tue, 14 May 2019 15:50:44 -0700 Subject: [PATCH] fetch should honor devel flag --- state/state.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/state/state.go b/state/state.go index e109bdff..3e21d371 100644 --- a/state/state.go +++ b/state/state.go @@ -450,6 +450,10 @@ func (st *HelmState) downloadCharts(helm helmexec.Interface, dir string, concurr chartPath = path.Join(dir, release.Name, "latest", release.Chart) } + if st.isDevelopment(release) { + fetchFlags = append(fetchFlags, "--devel") + } + // only fetch chart if it is not already fetched if _, err := os.Stat(chartPath); os.IsNotExist(err) { fetchFlags = append(fetchFlags, "--untar", "--untardir", chartPath) @@ -463,7 +467,6 @@ func (st *HelmState) downloadCharts(helm helmexec.Interface, dir string, concurr chartPath = filepath.Dir(fullChartPath) } } - results <- &downloadResults{release.Name, chartPath} } },