-
Notifications
You must be signed in to change notification settings - Fork 1.2k
✨ Leverage isInInitialList of ResourceEventHandler.OnAdd, Add IsInInitialList to TypedCreateEvent #3162
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
c423650
to
8b4eacb
Compare
Signed-off-by: Stefan Büringer [email protected]
8b4eacb
to
f4ad346
Compare
cc @howardjohn (as this is basically a follow-up to #2223) |
/assign @alvaroaleman @vincepri |
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.
Nice, that is a great simplification
LGTM label has been added. Git tree hash: 7e93121436ab7aaecc13f3a2a185bfe6f1cc5b62
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, 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 |
/hold cancel |
Thx again @caozhuozi for bringing this one up! :) |
Signed-off-by: Stefan Büringer [email protected]
Let's start using IsInitialList that is provided in the OnAdd func of ResourceEventHandlers.
This can be leveraged to determine in a clean way if an add/create event came from an initial list.
https://kubernetes.slack.com/archives/C02MRBMN00Z/p1742119089612549?thread_ts=1741482643.357719&cid=C02MRBMN00Z
Reverts the parts of #2223 that we don't need anymore.