Skip to content

Accessing CustomResource Cache from EventSources #98

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

Accessing CustomResource Cache from EventSources #98

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

Comments

@snowdrop-bot
Copy link

In event sources there are cases - especially when we want to associate the dependent resource with the main custom resource - when we want to search or have access to information to related custom resource, see:

https://github.com/java-operator-sdk/java-operator-sdk/blob/7eb3aa7f26e72ab59be04d87a8937440935d3945/sample-operators/tomcat-operator/src/main/java/io/javaoperatorsdk/operator/sample/WebappController.java#L45-L47
(In v2 there is better API to access the cache)

Should we support this explicitly like having a way to inject the cache?

Or support an indexing with some additional facilities for eventing?
see: Issues is related to: operator-framework#665
Note that for example the mentioned Tomcat sample we would need just a index the UID when the Tomcat CR appeared.


operator-framework#666


$upstream:666$

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