-
Notifications
You must be signed in to change notification settings - Fork 41
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
Update k8s dependencies to v0.27.2 and controller-runtime to v0.15.0 #114
Update k8s dependencies to v0.27.2 and controller-runtime to v0.15.0 #114
Conversation
Hi @tiraboschi. Thanks for your PR. I'm waiting for a operator-framework member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
@@ -74,7 +74,7 @@ var _ = Describe("Condition", func() { | |||
sch := runtime.NewScheme() | |||
err = apiv2.AddToScheme(sch) | |||
Expect(err).NotTo(HaveOccurred()) | |||
cl = fake.NewClientBuilder().WithScheme(sch).Build() | |||
cl = fake.NewClientBuilder().WithScheme(sch).WithStatusSubresource(operatorCond).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.
@@ -54,7 +54,7 @@ func ExampleNewPause() { | |||
if err != nil { | |||
os.Exit(1) | |||
} | |||
if err := c.Watch(&source.Kind{Type: &v1.Pod{}}, pause); err != nil { | |||
if err := c.Watch(source.Kind(mgr.GetCache(), &v1.Pod{}), pause); err != nil { |
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.
@rashmigottipati FYI |
3a8eb3a
to
fe56e57
Compare
var q workqueue.RateLimitingInterface | ||
var instance EnqueueRequestForAnnotation | ||
var pod *corev1.Pod | ||
var podOwner *corev1.Pod | ||
|
||
BeforeEach(func() { | ||
q = controllertest.Queue{Interface: workqueue.New()} | ||
q = &controllertest.Queue{Interface: workqueue.New()} |
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.
@@ -39,7 +43,7 @@ var _ = Describe("InstrumentedEnqueueRequestForObject", func() { | |||
registry.MustRegister(metrics.ResourceCreatedAt) | |||
|
|||
BeforeEach(func() { | |||
q = controllertest.Queue{Interface: workqueue.New()} | |||
q = &controllertest.Queue{Interface: workqueue.New()} |
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.
err error | ||
q workqueue.RateLimitingInterface | ||
pod *corev1.Pod | ||
) | ||
BeforeEach(func() { | ||
q = controllertest.Queue{Interface: workqueue.New()} | ||
q = &controllertest.Queue{Interface: workqueue.New()} |
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.
- update k8s dependencies to v0.27.2 - update controller-runtime to v0.15.0 - add context to EventHandler calls, see: kubernetes-sigs/controller-runtime#2139 Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
/retest |
/ok-to-test |
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
The apidiff tests are failing due to the author adding ccontext.Context parameter to EnqueueRequestForAnnotation
and InstrumentedEnqueueRequestForObject
handlers to comply with controller-runtime v0.15.0. Wondering if we can override this and force merge this PR.
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
/approve
github.com/onsi/gomega v1.24.1 | ||
github.com/go-logr/logr v1.2.4 | ||
github.com/onsi/ginkgo/v2 v2.9.5 | ||
github.com/onsi/gomega v1.27.7 | ||
github.com/operator-framework/api v0.17.4-0.20230223191600-0131a6301e42 |
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.
TODO: we would have to bump o-f/api once the k8s bump in it is done.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: varshaprasad96 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 |
/override go-apidiff |
@varshaprasad96: Overrode contexts on behalf of varshaprasad96: go-apidiff 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. |
Description of the change:
Update k8s dependencies to v0.27.1 and controller-runtime to v0.15.0
Motivation for the change:
keep the pace with k8s development