-
Notifications
You must be signed in to change notification settings - Fork 38.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
Valid Semver 2.0 not compatible with kubernetes labels #115055
Comments
@itay-grudev: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/sig architecture api-machinery |
What version of SemVer are you using @itay-grudev? |
If we relax the restriction on labels (see https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set), we might need to update lots of software in the ecosystem with the new definition of what characters are valid. |
We could also perhaps define a new annotation (not label) such as |
@sftim, AFAIK the |
I think the odds of expanding the label value character set are low. @sftim's comment about there being many distributed components / software that would not understand/expect the expanded characters is accurate. As a simple example, label values read from the API today do not contain any characters that require URL-encoding, so a labelSelector query could be constructed directly using a validated label value. With the addition of a |
What do people think about the annotation idea? |
/remove-sig api-machinery |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
@sftim I think using annotations instead is a good solution. /remove-lifecycle rotten |
@itay-grudev @sftim This is needed to support the SemVer standard. Any news on this? |
/uncc I'm not tracking this work. |
Can the regex be updated to support the industry standard https://semver.org/spec/v2.0.0.html ?
edit: the new annotation would be a nice way to implement this |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
What happened?
Semver is allowed to have the following syntax:
1.2.3+45
, where45
is the build number. We are using this versioning approach, and when we tried to put that into theapp.kubernetes.io/version
label we got the following error:I think this is a slight oversight and I think the regex there should be extended to:
From what I understand adding support for a
+
character doesn't have any additional implications and should be safe.What did you expect to happen?
I expected that a valid Semver is accepted as a label value.
How can we reproduce it (as minimally and precisely as possible)?
Add the following K8s label to any object:
Example:
Kubernetes version
Cloud provider
OS version
Bottlerocket OS 1.11.1 (aws-k8s-1.24)
The text was updated successfully, but these errors were encountered: