-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Adopt Helm best practice for altering build affix in versions when pushing to OCI #10166
Comments
having the exact same issue myself, only with a github packages destination. Without the build metadata it works just fine, changing the + to a _ results in a 404, and passing in the version with a _ to helm package results in the invalid error you have too. |
Same issue here, although Harbor responds with an HTTP 401 instead of the more reasonable 400. $ helm push foo-0.1.0+3d53eea.tgz oci://harbor.example.com/some-project
Error: unexpected status: 401 Unauthorized |
As we work to move Helm OCI out of experimental, this should be fixed. Moving to milestone |
Would be the case that helm/internal/experimental/pusher/ocipusher.go Lines 78 to 81 in 4884ca0
This behavior corroborates with the reported 404 and 401 status codes, as artifacts names might get decoded wrongly on the repositories side. |
Output of
helm version
: 3.7.0According to https://helm.sh/docs/chart_best_practices/conventions/#version-numbers, chart versions should follow
SemVer 2
. OCI labels choke on+
.It would be great to see that convention adopted when publishing Helm charts to an OCI registry.
Currently, when I include a build affix in the version, I can package the chart but not push it.
But if I use an
_
instead of an+
:Ideally, I would use the
+
separator for the build affix (per SemVer 2), and Helm would apply the documented convention and push an image label with_
substituted for+
.The text was updated successfully, but these errors were encountered: