Class ControllerFactory
java.lang.Object
io.micronaut.kubernetes.client.operator.ControllerFactory
@Requires(beans=io.kubernetes.client.informer.SharedInformerFactory.class)
@Singleton
@Internal
public class ControllerFactory
extends Object
Bean creates the controllers based on the
ControllerConfiguration
and registers them as singletons into
the bean context.- Since:
- 3.3
- Author:
- Pavol Gressa
-
Field Summary
-
Constructor Summary
ConstructorDescriptionControllerFactory
(@NonNull io.micronaut.context.BeanContext beanContext, @NonNull ControllerBuilder controllerBuilder, @NonNull ControllerManagerBuilder controllerManagerBuilder, @NonNull LeaderElectingControllerBuilder leaderElectingControllerBuilder, ExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createControllers
(@NonNull ResourceReconciler<?> reconciler, @NonNull ControllerConfiguration controllerConfiguration) Create the controllers.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
ControllerFactory
public ControllerFactory(@NonNull @NonNull io.micronaut.context.BeanContext beanContext, @NonNull @NonNull ControllerBuilder controllerBuilder, @NonNull @NonNull ControllerManagerBuilder controllerManagerBuilder, @NonNull @NonNull LeaderElectingControllerBuilder leaderElectingControllerBuilder, @Named("io") ExecutorService executorService)
-
-
Method Details
-
createControllers
@NonNull public void createControllers(@NonNull @NonNull ResourceReconciler<?> reconciler, @NonNull @NonNull ControllerConfiguration controllerConfiguration) Create the controllers.- Parameters:
reconciler
- the resource reconcilercontrollerConfiguration
- the controller configuration
-