-
Notifications
You must be signed in to change notification settings - Fork 216
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
Inject config into a KubernetesDependentResource #2087
Comments
HI @BramMeerten , updated the webpage sample on this branch, this seems to be working nicely: Thus, just extending the
Then this is just used when registering the reconciler:
|
Thanks! Extending the |
Re-opening this to document this. |
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. |
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. |
I'm trying to inject some dependencies into my
KubernetesDependentResource
.For dependent resources I usually do this by implementing
DependentResourceConfigurator
:But
KubernetesDependentResource
already implementsDependentResourceConfigurator
, so I can't configure my own config.Currently working around this issue by using a singleton pattern.
I inject the dependencies into the singleton and initialise it before the dependent resource reconciler is created.
The dependent resource reconciler then fetches its dependencies from the singleton.
Is there a different way to do this?
The text was updated successfully, but these errors were encountered: