mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Started work on 'helm pull'
Signed-off-by: Andrew Block <andy.block@gmail.com>
This commit is contained in:
parent
df98e18eb7
commit
4f62d3dc1b
2 changed files with 6 additions and 8 deletions
|
|
@ -18,7 +18,6 @@ package resolver
|
|||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue