-
Notifications
You must be signed in to change notification settings - Fork 1.2k
⚠️ Migration to the new events API #3262
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
Conversation
Hi @clebs. Thanks for your PR. I'm waiting for a kubernetes-sigs 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-sigs/prow repository. |
Open Items:
|
/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.
two questions
6bfbd83
to
0528c33
Compare
/assign |
@clebs Just a heads up. If we want to get this into the next CR minor release the deadline is in 2-3 weeks. We want to release the next CR minor shortly after the Kubernetes minor which is scheduled for 27th August |
Agreed, this needs more effort. I am not able to properly work on this with my current laptop. I will resume testing when I have access to modern hardware in a few days. |
4f82545
to
9a5f2a6
Compare
@sbueringer I have revisited this and tipped by this comment I suspected that the event broadcaster goroutine leaks may happen due to a race condition where the broadcaster is started and shutdown in quick succession. To avoid the race on the test, a short sleep has been added between start and shutdown. I went for this solution based on the comment linked above deliberately not attempting to fix this weakness in the current implementation. I have extensively tested this last commit and there were no leaks. Realistically this is not an issue to usage since the broadcaster is usually long lived. |
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.
Thx!
Last two nits from my side
/assign @alvaroaleman @clebs Feel free to squash if you want (merge bot can also take care of it) |
looks good to me, agree regarding the comment about explaining the sleep. Could we link in our code to an upstream issue wrt using the new api in the leader elector? Thanks a lot for your work here. |
- Add the new events API - Deprecate the old evens API - Add unit and integration tests Signed-off-by: Borja Clemente <[email protected]>
@alvaroaleman added comment explaining the sleep and a comment on leader election referencing kubernetes/kubernetes#82846. I would assume that the fact that apidiff is failing is expected and not required to merge? |
/retest |
Yes, its an optional job and its purpose only is to tell us if there are breaking changes |
@clebs: 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-sigs/prow repository. I understand the commands that are listed here. |
/test pull-controller-runtime-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.
/hold
LGTM label has been added. Git tree hash: b9886ef51a4349573c33c1654905f0856b3b4486
|
Thank you very much!! Really appreciate the persistence. As a side note, this is not the typical experience when contributing to CR :) /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, clebs, sbueringer 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 |
This Pull Request migrates from the old events API (
k8s.io/client-go/tools/record
) to the new API (k8s.io/client-go/tools/events
).Closes #2141