Remove OCI boolean from struct

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
pull/8843/head
Peter Engelbert 4 years ago
parent 3028c55858
commit f666fceb30

@ -69,8 +69,6 @@ func newPullCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
if !FeatureGateOCI.IsEnabled() { if !FeatureGateOCI.IsEnabled() {
return FeatureGateOCI.Error() return FeatureGateOCI.Error()
} }
client.OCI = true
} }
for i := 0; i < len(args); i++ { for i := 0; i < len(args); i++ {

@ -43,7 +43,6 @@ type Pull struct {
Devel bool Devel bool
Untar bool Untar bool
VerifyLater bool VerifyLater bool
OCI bool
UntarDir string UntarDir string
DestDir string DestDir string
cfg *Configuration cfg *Configuration
@ -90,7 +89,7 @@ func (p *Pull) Run(chartRef string) (string, error) {
RepositoryCache: p.Settings.RepositoryCache, RepositoryCache: p.Settings.RepositoryCache,
} }
if p.OCI { if strings.HasPrefix(chartRef, "oci://") {
if p.Version == "" { if p.Version == "" {
return out.String(), errors.Errorf("--version flag is explicitly required for OCI registries") return out.String(), errors.Errorf("--version flag is explicitly required for OCI registries")
} }

Loading…
Cancel
Save