fix oci issue

Signed-off-by: yxxhero <aiopsclub@163.com>
pull/9482/head
yxxhero 4 years ago
parent 23153d9e96
commit 417cc17db0

@ -29,7 +29,6 @@ import (
"helm.sh/helm/v3/pkg/chart"
"helm.sh/helm/v3/pkg/chart/loader"
"helm.sh/helm/v3/pkg/gates"
"helm.sh/helm/v3/pkg/gitutils"
"helm.sh/helm/v3/pkg/helmpath"
"helm.sh/helm/v3/pkg/provenance"
@ -37,8 +36,6 @@ import (
"helm.sh/helm/v3/pkg/repo"
)
const FeatureGateOCI = gates.Gate("HELM_EXPERIMENTAL_OCI")
var hasGitReference = gitutils.HasGitReference
// Resolver resolves dependencies from semantic version ranges to a particular version.

@ -345,11 +345,6 @@ func (m *Manager) downloadAll(deps []*chart.Dependency) error {
version := ""
if registry.IsOCI(churl) {
if !resolver.FeatureGateOCI.IsEnabled() {
return errors.Wrapf(resolver.FeatureGateOCI.Error(),
"the repository %s is an OCI registry", churl)
}
churl, version, err = parseOCIRef(churl)
if err != nil {
return errors.Wrapf(err, "could not parse OCI reference")

Loading…
Cancel
Save