-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error pulling latest chart from OCI registry if semver version has a v prefix #11107
Comments
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
/lifecycle frozen |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
This is still a problem. For example with chart of cert-mnager : cert-manager/cert-manager#2380 To see if Helm keeps requirement about Semver version, or if it can accomodate with a |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
This is still a problem. For example with chart of cert-mnager : cert-manager/cert-manager#2380 To see if Helm keeps requirement about Semver version, or if it can accomodate with a v prefix. |
Edit: I do consider this a bug, see #12403 |
I tend to agree with you. |
I still consider this a bug in Helm and wrote the following in cert-manager/cert-manager#2380 (comment):
Neither of those tools emits any error or warning about the
BTW semver ranges and discovery of latest do work when using a standard chart repository. The Helm Charts and Versioning documentation says:
Given that Neither Migrating Helm v2 to v3 nor Changes Since Helm 2 say anything about stricter version parsing. So it seems to me that it's a bug in helm, which could be fixed by: |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
If a Helm chart is in an OCI registry and has a version with
v
prefix before the semver, many of thehelm
subcommands can not find it.I think the problem is caused by the use of StrictNewVersion vs NewVersion here in the registry/client.go file:
helm/pkg/registry/client.go
Lines 622 to 630 in 79cd4dd
Elsewhere in the Helm code, the more lenient
semver.NewVersion
is used:For example:
With a strict semver versioned chart, as used for testing
pkg/registry/client.go
, both push and pull work with an OCI registry:But with the Helm chart for cert-manager which uses a
vX.Y.Z
version number:Push it to an OCI registry:
helm pull
fails, without specifying a version:helm pull
succeeds when a--version
is supplied:xref:
Helm version info
The text was updated successfully, but these errors were encountered: