mirror of
https://github.com/helm/helm.git
synced 2026-08-09 01:21:20 +00:00
Remove OCI boolean from struct
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user