-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI-1658: Upgrade controller-runtime to v0.10.3
Upgrades controller-runtime from v0.9.6 to v0.10.3. controller-runtime v0.10.0 now uses the k8s 1.22.x API, this means that many deprecated APIs have now been removed. https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22 Removed v1beta1 versions of the `scheduling` and `admissionregistration` API from integrations tests, and I have also updated the base manifests to remove these versions too. Updated the kind node image to 1.22.2 to match our k8s API version for acceptance tests. Updated our CI unit and integration tests to use the `setup-envtest` helper utility which configures k8s versions for the controller-runtime envtest pkg to use for testing. Set the envtest k8 version to 1.22.2. See these urls for more information: https://book.kubebuilder.io/reference/envtest.html#configuring-envtest-for-integration-tests https://github.com/kubernetes-sigs/controller-runtime/tree/master/tools/setup-envtest#envtest-binaries-manager Documented how to use setup-envtest for local unit and integration testing. Using setup-envtest for local tests also gets rid of this issue: https://book.kubebuilder.io/reference/envtest.html#kubernetes-120-and-121-binary-issues which was present in the binaries packaged with kubebuilder v2.3.1. Bump controller-gen to [v0.7.0](https://github.com/kubernetes-sigs/controller-tools/releases/tag/v0.7.0) as controller-tools k8s dependencies are bumped to 1.22.1, removes support for deprecated v1beta1 CRDs and webhooks.
- Loading branch information
Nabil372
committed
Nov 14, 2022
1 parent
7fbe84d
commit 5f491b1
Showing
15 changed files
with
4,149 additions
and
1,216 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
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.