-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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: invalid format of image for tag with plus (+) in it. #3314
Comments
If Docker doesn't support |
@Shell32-Natsu Because Docker and Kustomize should not care what the format the image tag is (it is outside of their responsibilities), and using
|
See also opencontainers/distribution-spec#154 |
Docker shouldn't care the |
I still disagree that this should be a concern of kustomize, but at the very least @Shell32-Natsu you could add something to the documentation to indicate what a valid image tag is: https://kubectl.docs.kubernetes.io/references/kustomize/images/ |
That doc page is for label transformer, not for edit label command. Add a description in command help message in #3354 |
Describe the bug
Kustomize doesn't seem to accept
+
when editing the image tag withkustomize edit set image
. Having+
in an image tag is perfectly valid according to semver standards, but aside from that I don't know why kustomize is trying to do any kind of validation on the format of the image tag. That seems like logic that is outside the scope of what kustomize should be caring about here.Expected output
I expect it to update the
kustomization.yaml
appropriately:Actual output
Execute:
kustomize edit set image "helloworld:0.0.1-20201204201331+09775be8"
The result is:
Kustomize version
{Version:kustomize/v3.8.7 GitCommit:ad092cc7a91c07fdf63a2e4b7f13fa588a39af4f BuildDate:2020-11-12T01:08:43+00:00 GoOs:darwin GoArch:amd64}
Platform
Mac OS Catalina 10.15.7
Additional context
It turns out that Docker also does not currently support
+
in tags: distribution/distribution#1201 -- however, much like the issue here that seems like an unnecessary restriction that will be removed at some point in the future. May as well get ahead of that change here.The text was updated successfully, but these errors were encountered: