Remove OCI boolean from struct

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
This commit is contained in:
Peter Engelbert
2020-10-08 10:26:55 -05:00
parent 3028c55858
commit f666fceb30
2 changed files with 1 additions and 4 deletions

View File

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

View File

@@ -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")
}