From 286d4921c2fd46e6bdfd325806a4e0affde92d04 Mon Sep 17 00:00:00 2001 From: Payal Godhani Date: Tue, 28 Jan 2025 14:25:26 -0800 Subject: [PATCH] Modifying function call in other files -e Signed-off-by: Payal Godhani --- pkg/action/install.go | 2 +- pkg/action/pull.go | 3 ++- pkg/downloader/manager.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/action/install.go b/pkg/action/install.go index ec074a8d2..61d352a50 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -789,7 +789,7 @@ func (c *ChartPathOptions) LocateChart(name string, settings *cli.EnvSettings) ( dl.Verify = downloader.VerifyAlways } if c.RepoURL != "" { - chartURL, err := repo.FindChartInAuthAndTLSAndPassRepoURL(c.RepoURL, c.Username, c.Password, name, version, + chartURL, err := repo.FindChartInAuthRepoURL(c.RepoURL, c.Username, c.Password, name, version, c.CertFile, c.KeyFile, c.CaFile, c.InsecureSkipTLSverify, c.PassCredentialsAll, getter.All(settings)) if err != nil { return "", err diff --git a/pkg/action/pull.go b/pkg/action/pull.go index 63bc11d3b..82298c533 100644 --- a/pkg/action/pull.go +++ b/pkg/action/pull.go @@ -117,7 +117,8 @@ func (p *Pull) Run(chartRef string) (string, error) { } if p.RepoURL != "" { - chartURL, err := repo.FindChartInAuthAndTLSAndPassRepoURL(p.RepoURL, p.Username, p.Password, chartRef, p.Version, p.CertFile, p.KeyFile, p.CaFile, p.InsecureSkipTLSverify, p.PassCredentialsAll, getter.All(p.Settings)) + chartURL, err := repo.FindChartInAuthRepoURL(p.RepoURL, p.Username, p.Password, chartRef, p.Version, + p.CertFile, p.KeyFile, p.CaFile, p.InsecureSkipTLSverify, p.PassCredentialsAll, getter.All(p.Settings)) if err != nil { return out.String(), err } diff --git a/pkg/downloader/manager.go b/pkg/downloader/manager.go index 5a509646d..23bfadaef 100644 --- a/pkg/downloader/manager.go +++ b/pkg/downloader/manager.go @@ -742,7 +742,7 @@ func (m *Manager) findChartURL(name, version, repoURL string, repos map[string]* return } } - url, err = repo.FindChartInRepoURL(repoURL, name, version, certFile, keyFile, caFile, m.Getters) + url, err = repo.FindChartInAuthRepoURL(repoURL, "", "", name, version, certFile, keyFile, caFile, false, false, m.Getters) if err == nil { return url, username, password, false, false, "", "", "", err }