-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Use Go 1.21 min/max builtins #125046
base: master
Are you sure you want to change the base?
Use Go 1.21 min/max builtins #125046
Conversation
Hi @tklauser. Thanks for your PR. I'm waiting for a kubernetes 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-sigs/prow repository. |
/ok-to-test |
/lgtm |
LGTM label has been added. Git tree hash: d4b81e52174bdcaea3a46e6df2b6ff5a848e69c5
|
22b986c
to
293e861
Compare
/retest |
293e861
to
fc43eb3
Compare
/retest |
fc43eb3
to
d14d6ec
Compare
/retest |
1 similar comment
/retest |
d14d6ec
to
2f7010c
Compare
/retest |
2f7010c
to
7fbdd88
Compare
/retest |
Gentle ping @ffromani. I've rebased this on latest |
need review from sig-api-machinery folks, which are already tagged in the PR I believe |
/test pull-kubernetes-integration |
Ping, this PR has been open for a while. Would it be possible to get it reviewed? Thank you! |
The `min` and `max` builtins are available since Go 1.21[^1]. The top-level go.mod file is specifying Go 1.22, so the builtins can be used. [^1]: https://go.dev/doc/go1.21#language
7fbdd88
to
b01b016
Compare
/retest |
/test pull-kubernetes-unit |
/lgtm The need for function wrappers is too bad, but I don't see any other way to do it. |
LGTM label has been added. Git tree hash: d6205e09499e6b8d04bb628356d0a48510cc3741
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jpbetz, tklauser The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign mwielgus |
Sorry for pinging again. This has been open for quite a while and it looks like approval from an approver in |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
The
min
andmax
builtins are available since Go 1.211. The top-level go.mod file is specifying Go 1.22, so the builtins can be used instead of implementing them multiple times across the code base.Which issue(s) this PR fixes:
non
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
Footnotes
https://go.dev/doc/go1.21#language ↩