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
✨ (Kubebuilder CLI) upgrade k8s deps from 1.23.0 to 1.23.5 #2575
Conversation
Just 3 nits. a) Since it is just a bump and when we see that the k8s dep was from MAJOR.MINOR.z to z+ we know that it is only to get bug fixes. Then, in this way the title here would be something like:
b) We also need to bump it for the tests and release
c) Would be great we also update the k8s version used in the ci test (e2e) done with prow, see: https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/kubebuilder/kubebuilder-presubmits.yaml#L40 I think the projects /scaffold will only change the dep when we bump controller runtime. Could you help us with that? |
pkg/plugins/golang/v3/commons.go
Outdated
@@ -78,7 +78,7 @@ manifests: controller-gen` | |||
} | |||
|
|||
if err := util.ReplaceInFile("Makefile", | |||
"ENVTEST_K8S_VERSION = 1.23", | |||
"ENVTEST_K8S_VERSION = 1.23.5", |
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.
@NikhilSharmaWe sorry, this one we will only update when we update the plugin scaffolds
This implementation is because we have a feature to still use v1beta1 CRD APIs and it is removed from the latest versions so that if someone uses the feature we need to replace the scaffold to try to downgrade it all.
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.
ok
@camilamacedo86 Updated k8s version as suggested to 1.23.5, but some tests are failing, what could be the reason?
|
pkg/plugins/golang/v3/commons.go
Outdated
@@ -78,7 +78,7 @@ manifests: controller-gen` | |||
} | |||
|
|||
if err := util.ReplaceInFile("Makefile", | |||
"ENVTEST_K8S_VERSION = 1.23", | |||
"ENVTEST_K8S_VERSION = 1.23.3", |
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.
this change will also change the plugin scaffolds so we need to do in the follow up,
See that it is failing in the test data generate check: https://github.com/kubernetes-sigs/kubebuilder/runs/5760100478?check_suite_focus=true#step:6:895
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.
Sorry, by mistake.
/test pull-kubebuilder-test |
/test pull-kubebuilder-e2e-k8s-1-23-3 |
test/common.sh
Outdated
@@ -25,7 +25,7 @@ function convert_to_tools_ver { | |||
# Tests in 1.20 and 1.21 with their counterpart version's apiserver. | |||
"1.20"|"1.21") echo "1.19.2";; | |||
"1.22") echo "1.22.1";; | |||
"1.23") echo "1.23.3";; | |||
"1.23") echo "1.23.5";; |
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.
@NikhilSharmaWe
Sorry, this one will need to keep in a follow-up after we have it. That was my mistake . Could we revert?
See that we are facing an issue because we are trying to get kubebuilder-tools-1.23.5-darwin-amd64.tar.gz
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, I was thinking that too
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.
Done
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.
That shows great 🥇
/approved
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, NikhilSharmaWe, rashmigottipati 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 |
@NikhilSharmaWe when you submit a PR to update |
Fixes #2502