-
Notifications
You must be signed in to change notification settings - Fork 238
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
WIP: Bump k8s module versions to v1.27 #880
Conversation
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tenzen-y The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
k8s.io/klog/v2 v2.90.1 | ||
k8s.io/utils v0.0.0-20230313181309-38a27ef9d749 | ||
sigs.k8s.io/controller-runtime v0.14.6 | ||
sigs.k8s.io/controller-runtime v0.15.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.
We need to upgrade k8s modules with controller-runtime to avoid the following errors:
# sigs.k8s.io/controller-runtime/pkg/cache
../../../pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/cache/multi_namespace_cache.go:308:9: cannot use handles (variable of type map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration) as "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration value in return statement: map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration does not implement "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration (missing method HasSynced)
../../../pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/cache/multi_namespace_cache.go:321:9: cannot use handles (variable of type map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration) as "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration value in return statement: map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration does not implement "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration (missing method HasSynced)
../../../pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/cache/multi_namespace_cache.go:326:17: impossible type assertion: h.(map[string]toolscache.ResourceEventHandlerRegistration)
map[string]"k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration does not implement "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration (missing method HasSynced)
@@ -9,19 +9,20 @@ require ( | |||
github.com/kubeflow/mpi-operator v0.4.0 | |||
github.com/onsi/ginkgo/v2 v2.11.0 | |||
github.com/onsi/gomega v1.27.8 | |||
github.com/open-policy-agent/cert-controller v0.7.0 | |||
github.com/open-policy-agent/cert-controller v0.7.1-0.20230527042005-3b09cd39622f |
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.
The cert-controller v0.7.0 doesn't support controller-runtime v0.14.x.
@@ -27,7 +27,7 @@ import ( | |||
) | |||
|
|||
func NewFakeClient(objs ...client.Object) client.Client { | |||
return NewClientBuilder().WithObjects(objs...).Build() | |||
return NewClientBuilder().WithObjects(objs...).WithStatusSubresource(objs...).Build() |
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.
Since controller-runtime v0.15.0, we need to register objects to fakeClient for StatusSubresource.
Testing: Fake client status handling (kubernetes-sigs/controller-runtime#2259)
Added a new WithStatusSubresource option and pre-populating it with
all in-tree resources that have a status subresource
Update and Patch methods now don't change the status for any such
resource anymore
The status clients Update and Patch methods now only change the status
for any such resource
https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.15.0
/test pull-kueue-test-e2e-main-1-25 |
@tenzen-y: The following tests 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. |
Since it seems that the ComponentConfig doesn't work correctly, we need to work on #725, at first. |
@trasc Are you trying to upgrade k8s module versions? If so, I can close this PR. |
Do you have the commit on your local since I can not see the commit to upgrade modules in #856? |
PR needs rebase. 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. |
So did I for #856, also #856 contains some changes to the config that I needed vX.27.3, and is based on #889 already. We should go: /hold |
In favor of #856. |
@tenzen-y: Closed this PR. In response to this:
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. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
I upgraded k8s module versions to v1.27 because I prefer to use v1.27 module in kueue v0.4.
But if @trasc has already worked in progress, I will close this PR.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?