I have a quarkus application which skeleton was generated using Operator-SDK with the following commands:
> operator-sdk init --domain de.ilem0n --plugins quarkus.javaoperatorsdk.io/v1-alpha
> operator-sdk create api --version=v1alpha1 --kind=FlinkSession
The resulting project can be found here: FlinkOperator
The Problem is that the quarkus configuration via @ConfigProperty only works on the generated @Controller-classes.
If i add a service (in the example FlinkSessionReconciler.java
) the @ConfigProperties are always empty.
Whats the correct approach to enable this for all classes?
Thanks in advance ;)
Ok, found out the issue by myself.
Adding a bean defining annotation and injecting the service into the controller helps ;)