-
Notifications
You must be signed in to change notification settings - Fork 217
Returning a list of Objects in Optional<R> ResourceEventSource.getAssociated(P primary)
#824
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
Comments
@metacosm we could probably take a look on this before v2.0 released since it a API change. |
Could we have an example of why this is needed? And yes, we should probably do it before 2.0 if that's the case. |
I'd argue, though, that this use case might actually need to be handled via different event sources… which is why there was originally a |
@andreaTP had a use case, maybe he will describe it more precisely, that for example you might create multiple |
AFAIK also @lburgazzoli is using it this way, like watching all the resources of same kind with one event source. It completely makes sense imho. Especially if the resources can be nicely captured by label selectors. A new event source would create a new watch, what is much less efficient in terms of network resources. |
It makes sense but this would be a significant change and then I'd rather postpone it until after 2.0. This should be done with the same scope as dependent resources, imo. |
btw I think the same applies for the |
What do you mean? There can be only resource associated with a given |
ok, let's do that. There is still the workaround for this case to have the informer in a property and query it directly. |
I'd still like to see a detailed use case of why this is needed to see how it impacts the dependent resources work. |
@Andretp could you describe you use case pls? But IMHO this is quite trivial requirement, to allow for an operator to create multiple instances of same kind. |
An other approach would be just to remove the |
Having |
Use case in Keycloak is tackled here: keycloak/keycloak#9535 TL;DR: The operator has 2 controllers, one for the actual Deployment and another for "operating" the operand (in this case importing data). |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
It can happen that multiple resources are created related to one event source, the current api of ResourceEventSource is not covering this.
The text was updated successfully, but these errors were encountered: