🌱 Allow string validation on XIntOrString#1118
🌱 Allow string validation on XIntOrString#1118k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
Conversation
|
Welcome @cbandy! |
|
Hi @cbandy. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
JoelSpeed
left a comment
There was a problem hiding this comment.
This seems reasonable, thanks!
One question, if I were to use this feature, and provide a value that is a long integer, does the length of my integer, say 12 characters, also get validated with the same maximum length constraints? I assume the answer is yes but I'm not sure I see how the tests might demonstrate that this works
In my testing with 1.31 and 1.32, the answer is no, Go markers affect the YAML this project generates, and the Kubernetes API interprets that. |
|
Thx! /ok-to-test |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cbandy, sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
LGTM label has been added. DetailsGit tree hash: 951924f376de7af297d3b8ddf8887ee5bc05212b |
😅 Except that it didn't until kubernetes/kubernetes#132837 |
This allows
maxLengthandMinLengthonx-kubernetes-int-or-stringfields. The former helps limit CEL validation costs.