From f40fbf313160a2e757a0aad0f88db51663b5af7d Mon Sep 17 00:00:00 2001 From: Trond Hindenes Date: Thu, 5 Dec 2019 17:31:31 +0100 Subject: [PATCH] Use repository-cache if specified Signed-off-by: Trond Hindenes --- cmd/helm/repo_update.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/helm/repo_update.go b/cmd/helm/repo_update.go index 027f18518..2a208841b 100644 --- a/cmd/helm/repo_update.go +++ b/cmd/helm/repo_update.go @@ -66,6 +66,7 @@ func (o *repoUpdateOptions) run(out io.Writer) error { var repos []*repo.ChartRepository for _, cfg := range f.Repositories { r, err := repo.NewChartRepository(cfg, getter.All(settings)) + r.CachePath = settings.RepositoryCache if err != nil { return err } @@ -82,6 +83,7 @@ func updateCharts(repos []*repo.ChartRepository, out io.Writer) { for _, re := range repos { wg.Add(1) go func(re *repo.ChartRepository) { + debug("using path %s for cache", re.CachePath) defer wg.Done() if _, err := re.DownloadIndexFile(); err != nil { fmt.Fprintf(out, "...Unable to get an update from the %q chart repository (%s):\n\t%s\n", re.Config.Name, re.Config.URL, err)