Skip to content

Accessing CustomResource Cache from EventSources #666

Closed

Description

@csviri

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: #665
Note that for example the mentioned Tomcat sample we would need just a index the UID when the Tomcat CR appeared.

Activity

  1. added
    needs-discussion
    on Nov 10, 2021
  2. added this to the v2 milestone on Nov 10, 2021
  3. self-assigned this
    on Nov 10, 2021
  4. csviri commented on Dec 15, 2021

    @csviri
    CollaboratorAuthor

    see also: #729
    In short turned out this is still relatively simple to do without a explicit support

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

Metadata

Metadata

Assignees

Labels

devex-epiceventsources-epicfeatureneeds-discussion

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions