fix --registry-config issue

Signed-off-by: yxxhero <aiopsclub@163.com>
pull/10762/head
yxxhero 3 years ago
parent e9abdc5efe
commit 9f199b6517

@ -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
}

Loading…
Cancel
Save