Skip to content
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

Use EventSource cache to fetch resources #28

Closed
katheris opened this issue Aug 7, 2023 · 1 comment
Closed

Use EventSource cache to fetch resources #28

katheris opened this issue Aug 7, 2023 · 1 comment
Assignees

Comments

@katheris
Copy link
Contributor

katheris commented Aug 7, 2023

Kubernetes resources can be read from the JOSDK cache rather than making an explicit Kubernetes call to fetch them. This can be done in one of two ways:

  1. Use the context object and call context.getSecondaryResource (this requires a primaryToSecondary mapper function)
  2. Store a reference to the EventSource object at the class level and fetch the object from the cache in the event source.

Either way we should update the operator to make as few calls to Kubernetes as possible and instead rely on the JOSDK cache and event sources.

@katheris katheris self-assigned this Aug 7, 2023
@katheris
Copy link
Contributor Author

katheris commented Sep 1, 2023

Completed in #30

@katheris katheris closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant