From 62e899e510967d4692b0685b5688ade25e30cf5b Mon Sep 17 00:00:00 2001 From: yxxhero Date: Sat, 12 Mar 2022 12:29:00 +0800 Subject: [PATCH] fix --registry-config issue Signed-off-by: yxxhero Signed-off-by: Gong Yongjie --- pkg/action/install.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/action/install.go b/pkg/action/install.go index 3872ed5c9..cd202ccab 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -712,6 +712,10 @@ func (c *ChartPathOptions) LocateChart(name string, settings *cli.EnvSettings) ( RegistryClient: c.registryClient, } + if registry.IsOCI(name) { + dl.Options = append(dl.Options, getter.WithRegistryClient(c.registryClient)) + } + if c.Verify { dl.Verify = downloader.VerifyAlways }