Started work on 'helm pull'

Signed-off-by: Andrew Block <andy.block@gmail.com>
pull/10527/head
Andrew Block 3 years ago committed by Scott Rigby
parent df98e18eb7
commit 4f62d3dc1b
No known key found for this signature in database
GPG Key ID: C7C6FBB5B91C1155

@ -18,7 +18,6 @@ package resolver
import ( import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"fmt"
"os" "os"
"path/filepath" "path/filepath"
"strings" "strings"
@ -137,7 +136,6 @@ func (r *Resolver) Resolve(reqs []*chart.Dependency, repoNames map[string]string
} }
found = false found = false
} else { } else {
fmt.Println("Entering OCI block")
version = d.Version version = d.Version
if !FeatureGateOCI.IsEnabled() { if !FeatureGateOCI.IsEnabled() {
return nil, errors.Wrapf(FeatureGateOCI.Error(), return nil, errors.Wrapf(FeatureGateOCI.Error(),

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

Loading…
Cancel
Save