|
|
@ -92,14 +92,14 @@ func (p *Pull) Run(chartRef string) (string, error) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if registry.IsOCI(chartRef) {
|
|
|
|
if registry.IsOCI(chartRef) {
|
|
|
|
if p.Version == "" {
|
|
|
|
c.Options = append(c.Options,
|
|
|
|
return out.String(), errors.Errorf("--version flag is explicitly required for OCI registries")
|
|
|
|
getter.WithRegistryClient(p.cfg.RegistryClient))
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if p.Version != "" {
|
|
|
|
c.Options = append(c.Options,
|
|
|
|
c.Options = append(c.Options,
|
|
|
|
getter.WithRegistryClient(p.cfg.RegistryClient),
|
|
|
|
|
|
|
|
getter.WithTagName(p.Version))
|
|
|
|
getter.WithTagName(p.Version))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if p.Verify {
|
|
|
|
if p.Verify {
|
|
|
|
c.Verify = downloader.VerifyAlways
|
|
|
|
c.Verify = downloader.VerifyAlways
|
|
|
|