Skip to content

Commit

Permalink
fix --registry-config issue
Browse files Browse the repository at this point in the history
Signed-off-by: yxxhero <aiopsclub@163.com>
  • Loading branch information
yxxhero committed Mar 12, 2022
1 parent e9abdc5 commit 9f199b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/action/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9f199b6

Please sign in to comment.