Class ResourceReconcilerCreatedListener<ApiType extends io.kubernetes.client.common.KubernetesObject>
java.lang.Object
io.micronaut.kubernetes.client.operator.ResourceReconcilerCreatedListener<ApiType>
- Type Parameters:
ApiType- the Kubernetes resource api type
- All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<ResourceReconciler<ApiType>>,EventListener
@Requires(beans=io.kubernetes.client.informer.SharedInformerFactory.class)
@Context
@Internal
public class ResourceReconcilerCreatedListener<ApiType extends io.kubernetes.client.common.KubernetesObject>
extends Object
implements io.micronaut.context.event.BeanCreatedEventListener<ResourceReconciler<ApiType>>
BeanCreatedEventListener for the ResourceReconciler annotated by Operator.
The interceptor automatically creates the controller infrastructure based on the Operator configuration. This
consists from DefaultController managed by
ControllerManager and operated by LeaderElectingController.
- Since:
- 3.3
- Author:
- Pavol Gressa
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResourceReconcilerCreatedListener(io.micronaut.context.BeanContext beanContext, @NonNull ControllerFactory controllerFactory) -
Method Summary
Modifier and TypeMethodDescriptiononCreated(io.micronaut.context.event.BeanCreatedEvent<ResourceReconciler<ApiType>> event)
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
ResourceReconcilerCreatedListener
public ResourceReconcilerCreatedListener(io.micronaut.context.BeanContext beanContext, @NonNull @NonNull ControllerFactory controllerFactory)
-
-
Method Details
-
onCreated
public ResourceReconciler<ApiType> onCreated(io.micronaut.context.event.BeanCreatedEvent<ResourceReconciler<ApiType>> event) - Specified by:
onCreatedin interfaceio.micronaut.context.event.BeanCreatedEventListener<ApiType extends io.kubernetes.client.common.KubernetesObject>
-