Class DefaultLeaderElectingControllerBuilder
java.lang.Object
io.micronaut.kubernetes.client.operator.controller.DefaultLeaderElectingControllerBuilder
- All Implemented Interfaces:
LeaderElectingControllerBuilder
@Singleton
public class DefaultLeaderElectingControllerBuilder
extends Object
implements LeaderElectingControllerBuilder
The default implementation of
LeaderElectingControllerBuilder
.- Since:
- 3.3
- Author:
- Pavol Gressa
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultLeaderElectingControllerBuilder
(io.kubernetes.client.extended.leaderelection.LeaderElectionConfig leaderElectionConfig, io.micronaut.context.event.ApplicationEventPublisher<LeaseLostEvent> leaseLostEventApplicationEventPublisher, io.micronaut.context.event.ApplicationEventPublisher<LeaseAcquiredEvent> leaseAcquiredEventApplicationEventPublisher) -
Method Summary
Modifier and TypeMethodDescription@NonNull io.kubernetes.client.extended.controller.LeaderElectingController
build
(@NonNull ControllerConfiguration operator, @NonNull ResourceReconciler<?> resourceReconciler, @NonNull io.kubernetes.client.extended.controller.ControllerManager controllerManager) Builds theLeaderElectingController
.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
DefaultLeaderElectingControllerBuilder
public DefaultLeaderElectingControllerBuilder(io.kubernetes.client.extended.leaderelection.LeaderElectionConfig leaderElectionConfig, io.micronaut.context.event.ApplicationEventPublisher<LeaseLostEvent> leaseLostEventApplicationEventPublisher, io.micronaut.context.event.ApplicationEventPublisher<LeaseAcquiredEvent> leaseAcquiredEventApplicationEventPublisher)
-
-
Method Details
-
build
@NonNull public @NonNull io.kubernetes.client.extended.controller.LeaderElectingController build(@NonNull @NonNull ControllerConfiguration operator, @NonNull @NonNull ResourceReconciler<?> resourceReconciler, @NonNull @NonNull io.kubernetes.client.extended.controller.ControllerManager controllerManager) Description copied from interface:LeaderElectingControllerBuilder
Builds theLeaderElectingController
.- Specified by:
build
in interfaceLeaderElectingControllerBuilder
- Parameters:
operator
- the operator configurationresourceReconciler
- the operator's reconcilercontrollerManager
- the controller manager- Returns:
- leader electing controller
-