fix --registry-config issue

Signed-off-by: yxxhero <aiopsclub@163.com>
Signed-off-by: Gong Yongjie <yong-jie.gong@microfocus.com>
pull/10914/head
yxxhero 4 years ago committed by Gong Yongjie
parent ca84e1e5e2
commit 62e899e510

@ -712,6 +712,10 @@ func (c *ChartPathOptions) LocateChart(name string, settings *cli.EnvSettings) (
RegistryClient: c.registryClient, RegistryClient: c.registryClient,
} }
if registry.IsOCI(name) {
dl.Options = append(dl.Options, getter.WithRegistryClient(c.registryClient))
}
if c.Verify { if c.Verify {
dl.Verify = downloader.VerifyAlways dl.Verify = downloader.VerifyAlways
} }

Loading…
Cancel
Save