-
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
✨ (go/v3, go/v4-alpha and declarative/v1): Update k8s deps by upgrading controller-runtime from v0.12.2 to 0.13.0 and kubebuilder-declarative-pattern from fe5be9431eae158f86f9de23000a9a2ec06745fc to e0605f0e1a40f97293cb3773f57de695c8bc76af #2920
✨ (go/v3, go/v4-alpha and declarative/v1): Update k8s deps by upgrading controller-runtime from v0.12.2 to 0.13.0 and kubebuilder-declarative-pattern from fe5be9431eae158f86f9de23000a9a2ec06745fc to e0605f0e1a40f97293cb3773f57de695c8bc76af #2920
Conversation
/test pull-kubebuilder-e2e-k8s-1-25-0 |
Question: it seems like updating the dependencies fail with go1.17. I tried it locally and it seems to be the same result. Can we bump it? |
@oscr It looks like we may need to update the Legacy unit tests action to use Go 1.19.0 instead of 1.17.3 |
@everettraven Looks like @oscr created another PR for the same #2911 |
@laxmikantbpandhare @everettraven Sorry I asked to break down #2911 but I was slow to close it. |
No problem! I will update it immediately |
4af34ee
to
d0dd84f
Compare
@oscr: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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/test-infra repository. I understand the commands that are listed here. |
d0dd84f
to
4db841b
Compare
pkg/plugins/golang/v3/commons.go
Outdated
@@ -84,7 +84,7 @@ manifests: controller-gen` | |||
} | |||
|
|||
// latest version of controller-runtime where v1beta1 is supported | |||
const controllerRuntimeVersionForVBeta1 = "v0.9.2" | |||
const controllerRuntimeVersionForVBeta1 = "v0.13.0" |
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.
@oscr this one we cannot update.
The kubebuilder CLI has an option to create the projects using crd/webhooks API v1beta1 which is no longer provided since k8s 1.22. This logic will update the go.mod file to use the deps that works with v1beta1 if/when someone calls the command to create api [options] crd-version=v1beta1
Therefore, could you please revert it and also add a comment on the top to explain it so that others in the future does not try to update this one?
Example (something like):
// DO NOT UPDATE THIS VERSION
// Note that this implementation will update the go.mod to downgrade the versions for those that are
// compatible v1beta1 CRD/Webhooks k8s core APIs if/when an user tries to create a API with
// create api [options] crd-version=v1beta1. The flag/feature is deprecated. however, to ensure that backwards
// compatible we must introduce this logic. Also, note that when we bump the k8s dependencies we need to
// ensure that the following replacements will be done accordingly to downgrade the versions.
// The next version of the Golang base plugin (go/v4-alpha) no longer provide this feature.
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.
/hold
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.
Btw, we have been removing the testdata and samples with this option because it is deprecated.
So, that it did not fail in the tests but we need to ensure that we have a testdata that checks it.
The ci should fail with this change. I am adding an issue so we are able to ensure that.
@@ -34,7 +34,7 @@ import ( | |||
|
|||
const ( | |||
// ControllerRuntimeVersion is the kubernetes-sigs/controller-runtime version to be used in the project | |||
ControllerRuntimeVersion = "v0.12.2" | |||
ControllerRuntimeVersion = "v0.13.0" | |||
// ControllerToolsVersion is the kubernetes-sigs/controller-tools version to be used in the project | |||
ControllerToolsVersion = "v0.9.2" |
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.
@oscr could we also update the controller tools here to the latest version which uses k8s 1.25?
We need to ask for a new release, see: https://github.com/kubernetes-sigs/controller-tools
I added an issue for that see: #2926
4db841b
to
1f60eba
Compare
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.
/hold cancel
/approved
/lgtm
@oscr thank you for the contribution 🥇
PS.: I hope that you do not mind but I just update the title for we are able to generate the release notes automatically with the info (see that I added the name of the plugins changed/affected by)
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, oscr 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 |
@camilamacedo86 No, I don't mind at all. Thank you for updating the title to better reflect the content. |
Updates:
There was no update for controller-tools, however I am watching it for releases.
I hope I correctly updated declarative-pattern
cc @camilamacedo86