Skip to content

Commit

Permalink
fix oci issue
Browse files Browse the repository at this point in the history
Signed-off-by: yxxhero <aiopsclub@163.com>
  • Loading branch information
yxxhero authored and dominykas committed Feb 6, 2024
1 parent 517ff93 commit 3ba8354
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions internal/resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,13 @@ 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"
"helm.sh/helm/v3/pkg/registry"
"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.
Expand Down
5 changes: 0 additions & 5 deletions pkg/downloader/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,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")
Expand Down

0 comments on commit 3ba8354

Please sign in to comment.