forked from antrea-io/antrea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update k8s libraries to v1.31.1 (antrea-io#6681)
- Update K8s libraries to v1.31.1 - Update sigs.k8s.io/controller-runtime to v0.19.0 - Update controller-gen to v0.16.3 - Use ubuntu:24.04 as base image for codegen Some of the key changes that were caused by these updates: - Most functions in `k8s.io/client-go/util/workqueue` have been deprecated and were replaced with typed functions (using Go generics) - The `Version` field no longer exists in the generic apiserver config. It has been replaced with `EffectiveVersion` (this is because kube-apiserver now supports version emulation for more robust K8s version upgrades). `EffectiveVersion` is not required (`Version` used to be optional), and I am not sure whether that was an intentional change. `EffectiveVersion` is used (instead of `Version`) to configure the `/version` route. At the moment we have no intention of supporting version emulation in the Antrea Controller, but we could in the future. As far as I can tell, other changes relating to version emulation support do not affect Antrea. - The arguments to code generators have changed quite a bit. - The code generated for client-go (by `client-gen`) is now more generic (it leverages Go generics), so as a result the generated code is less verbose. - controller-gen now requires uniqueness for controller names (across all controllers in the program), for metrics reporting purposes. Because of this, we had to assign unique names manually to all controllers (and the name validation needs to be explicitly skipped in unit tests).
- Loading branch information
1 parent
27c931a
commit 8238779
Showing
246 changed files
with
4,032 additions
and
6,517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.