-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 support to go 1.18 and for (go/v3), update envtest version to use k8s 1.24 #2714
Conversation
/test pull-kubebuilder-test |
/test pull-kubebuilder-e2e-k8s-1-14-10 |
ae18162
to
b5a2254
Compare
362a288
to
abf5414
Compare
@@ -2,7 +2,7 @@ | |||
# Image URL to use all building/pushing image targets | |||
IMG ?= controller:latest | |||
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. | |||
ENVTEST_K8S_VERSION = 1.24.1 | |||
ENVTEST_K8S_VERSION = 1.21 |
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.
is this going backwards? 1.24.1 -> 1.21?
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.
Yes. A project that is scaffold with v1beta1 cannot work with k8s >= 1.22 so that cannot work with 1.24.1.
This sample is done using the crdversions v1beta1 and when this option is used we downgrade the scaffold to warn the users.
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.
Note that the sample testdata/project-v3-v1beta1 is built using CRD v1beta1 and the optional flag crd-version=v1beta1
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.
gotcha!
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, dims 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 |
Description
PS.: Note that we are here only bumping the scaffolds and not the Kubebuilder tool since we do not want for now to impact who consumes the tool. But we are also updating the tests and the versions used to build the tool to ensure that it can work with 1.18
Closes: #2559
Closes: #2561