Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Started work on 'helm pull'
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Block <andy.block@gmail.com>
  • Loading branch information
sabre1041 authored and scottrigby committed Jan 12, 2022
1 parent df98e18 commit 4f62d3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions internal/resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package resolver
import (
"bytes"
"encoding/json"
"fmt"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -137,7 +136,6 @@ func (r *Resolver) Resolve(reqs []*chart.Dependency, repoNames map[string]string
}
found = false
} else {
fmt.Println("Entering OCI block")
version = d.Version
if !FeatureGateOCI.IsEnabled() {
return nil, errors.Wrapf(FeatureGateOCI.Error(),
Expand Down
12 changes: 6 additions & 6 deletions pkg/action/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ func (p *Pull) Run(chartRef string) (string, error) {
}

if registry.IsOCI(chartRef) {
if p.Version == "" {
return out.String(), errors.Errorf("--version flag is explicitly required for OCI registries")
}

c.Options = append(c.Options,
getter.WithRegistryClient(p.cfg.RegistryClient),
getter.WithTagName(p.Version))
getter.WithRegistryClient(p.cfg.RegistryClient))

if p.Version != "" {
c.Options = append(c.Options,
getter.WithTagName(p.Version))
}
}

if p.Verify {
Expand Down

0 comments on commit 4f62d3d

Please sign in to comment.