Automatic configuration of Camel cluster services
We should be able to do something similar to what Camel Spring Boot does to capture configuration for Camel cluster services and then use it to create the appropriate CamelClusterService.
See example for the FileLockClusterService:
https://github.com/apache/camel-spring-boot/tree/main/components-starter/camel-file-starter/src/main/java/org/apache/camel/component/file/springboot/cluster
We should aim to have auto configuration of each of the available CamelClusterService implementations that CQ supports. File, Kubernetes etc.
For what concerns the cluster service based on Kubernetes, the camel-k master auto configuration customizer:
- offers an opinionated way of configuring the master component so only a subset of the options are exposed whereas the spring boot one exposes all the options. Given that we are gogin to leverage the kubernetes client from Quarkus I guess we can be opinionated here too.
- offers additional capabilities like enabling rebalancing
In Camel Quarkus, we might implement KubernetesClusterService and FileLockClusterService. Other cluster services would not be in scope for the moment. KubernetesClusterService has been done in ticket ~4086 FileLockClusterService could be treated in another ticket.