0

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 ;)

Peter C. Glade
  • 543
  • 2
  • 8
  • 16

1 Answers1

0

Ok, found out the issue by myself.

Adding a bean defining annotation and injecting the service into the controller helps ;)

Peter C. Glade
  • 543
  • 2
  • 8
  • 16
  • Thanks Peter. If this solves your problem, could you please mark this as the answer? Also feel free to file an issue if theres something that can be improved https://github.com/java-operator-sdk/java-operator-sdk/issues – asmacdo Nov 29 '21 at 15:28
  • @asmacdo: Thanks, I will do so when i have the necessary knowledge ;) – Peter C. Glade Nov 30 '21 at 21:50