Skip to content

CustomResource lifecycle notifications for EventSources #97

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

Open
snowdrop-bot opened this issue Nov 10, 2021 · 0 comments
Open

CustomResource lifecycle notifications for EventSources #97

snowdrop-bot opened this issue Nov 10, 2021 · 0 comments

Comments

@snowdrop-bot
Copy link

Currently the event sources are already aware when a custom resource is delete, we have a callback which is currently called for example for TimerEventSource, to cleanup all the timed events for the resource if it's not exists anymore.

Similar situation could happen for polling event source: operator-framework#651
Where in the variant where we would poll separately for each custom resource the event source should be aware of the lifecycle events of a custom resource. Mainly if a custom resource is created and deleted. So the used don't have to pass the custom resource all the time to the polling event source what he wants to poll.

So a feature where an event source could implement CustomResourceEventAware interface where it could receive events for the custom resource like if created,deleted and updated arrived.

So for example when a new custom resource appeared the polling custom resource could poll from that point.

see also: operator-framework#666

(This is an additive API change not necessarily needs to be in v2 first release)


operator-framework#665


$upstream:665$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants