-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
🏃Add semver version validation rules to Machine type and fix KCP version validation #2674
Conversation
Hi @sedefsavas. 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. 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/ok-to-test
/milestone v0.3.1
waiting for ci to finish before lgtm |
3c920ac
to
fd40ba7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering what happens if the version string is v1
or v1.7
, will this pass validation? Are they valid version strings in this context?
Yes, those are valid as I use semver.ParseTolerant(), if we want to limit that but still accept preceding "v", we can use both ParseTolerant() followed by Parse() |
fd40ba7
to
be313dc
Compare
I'm not sure how this would help? Since Looking at how |
be313dc
to
d220560
Compare
Right, modified it accordingly. Thanks for reviewing! |
Should we also change the validation in KCP to match what we're doing here? |
d220560
to
d18710f
Compare
Added the KCP version validation fix in this PR too. |
5316a10
to
08b874c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sedefsavas, vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@sedefsavas mind rebasing? |
[KCP] Fix semver version validation for KCP spec.version
08b874c
to
84f0b3b
Compare
/lgtm |
What this PR does / why we need it:
Which issue(s) this PR fixes
This PR adds semver version validation for Machine type.
Fixes #2657