-
Notifications
You must be signed in to change notification settings - Fork 1k
Update code to use k8s.io/api/discovery/v1 instead of v1beta1 #1020
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
Update code to use k8s.io/api/discovery/v1 instead of v1beta1 #1020
Conversation
942d70f to
99a64e7
Compare
|
I probably rushed too much with this PR, as discovery/v1 is only available since K8s 1.21 and v1beta1 will be removed only in 1.25 release. And I'm not sure if it's worth it figuring out support for both in parallel. Even currently used version of BTW, I don't know why linter fails though. Running it locally with the same version does not report any issues to me and CI does not print why it fails 😕 See also https://kubernetes.io/docs/reference/using-api/deprecation-guide/#endpointslice-v125 |
|
@invidian , I'd rather wait to have 1.20 out of the support loop, which should happen fairly soon. |
|
@invidian I think it's now time to revamp this since 1.20 is out of support lifecycle, are you willing to work on this again? |
|
I'll rebase and see how it goes then 👍 |
Awesome, thanks! I see kind already pins to 1.21, so there is no need to update it. |
99a64e7 to
9d76757
Compare
|
@fedepaol is 1.20 EOL yet? A new 1.20.x release was just created: https://groups.google.com/a/kubernetes.io/g/dev/c/Y1q7XUp5gjM/m/K_JZcn-5AgAJ |
My understanding was that k8s maintain the n-3 latest release. According to https://endoflife.date/kubernetes , 1.20 active support ended in December, bug fixing will end next month. |
|
|
Ohh, great then! :) |
9491d69 to
34c6ecc
Compare
|
I'm not sure why linter fails on CI (it runs quite old version BTW). This PR does not touch mentioned files... And building was failing due to dependencies requiring Go 1.17 now, which wasn't quite explicitly said, so I had to downgrade the K8s dependencies to v0.22.x until Go is updated to 1.17. |
Closes metallb#980 Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com> Co-authored-by: Federico Paolinelli <fpaoline@redhat.com>
34c6ecc to
0fa00e4
Compare
|
Apologies for following up so late, let's wait for CI and merge this. And thanks. |
|
Thanks for finishing this PR. I was on holidays and I couldn't do it :) |
|
np, I felt guilty enough not to merge it before :P |
Closes #980