-
Notifications
You must be signed in to change notification settings - Fork 218
Feature: tight up the integration with extra eventSources #826
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
Hi @andreaTP or the CR: You can also use the get it using the context:
|
have you already evaluated to expose this functionality from the |
sure, currently its limited, since the dependent resources might have impact on this, for now see: |
Generally speaking, I think it's a bad pattern to expose the underlying implementation if we can avoid it. We switched from Watcher to Informer, we might switch to something else again. We shouldn't have to expose this to the users. Similarly, we now send a list of event sources to be registered and people shouldn't hold onto them unless really needed. Event sources are an implementation detail that people shouldn't really have to deal with most of the time. See the dependent resource work (#785) to see how things could be improved (imo, at least! 😅)
That's how it should secondary resources should be retrieved, imo.
No this isn't at the moment. |
Maybe we should create a separate issue for this, and discuss where this should be done, not sure if this is quarkus extension, then rather here in the JOSDK, or actually by Operator SDK Plugin. |
This is true for K8S resource, we can make a good API to access those, the non-k8s resources is a different story, for now we created the event sources which should be the base for those, to see how we could make a unification. See the |
Generating RBACs here would be quite complicated and duplicate work that's already done elsewhere. Not sure about the plugin. RBACs are already generated mostly for "free" in the Quarkus extension, we already augment what is generated by default there. We could indeed extract more information from the event sources (and dependent resource definitions when we have them). Created quarkiverse/quarkus-operator-sdk#189 to investigate this. |
That's a good comment, we should be able to register "Watched resources" and they should be easily accessible from the public API without bothering about the implementation details. |
A controller can define additional eventSources as shown e.g. here
there are 2 improvements we can investigate:
The text was updated successfully, but these errors were encountered: