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() {
return FeatureGateOCI.Error()
}
client.OCI = true
}
for i := 0; i < len(args); i++ {

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

Loading…
Cancel
Save