Annotation Interface Operator
@Retention(RUNTIME)
@Target({TYPE,ANNOTATION_TYPE})
@Bean
@DefaultScope(io.micronaut.context.annotation.Context.class)
public @interface Operator
Operator annotation simplifies initialisation of the controllers.
- Since:
- 3.3
- Author:
- Pavol Gressa
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe name of the operator.Class<? extends BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,
Boolean>> Class<? extends BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,
? extends io.kubernetes.client.common.KubernetesObject>>
-
Element Details
-
informer
Informer informer
-
-
-
name
String nameThe name of the operator. The name is used to uniquely identify created controllers in the context. If not provided the controller name is generated.- Returns:
- operator name
- Default:
- ""
-
onAddFilter
- Default:
- io.micronaut.kubernetes.client.operator.filter.DefaultAddFilter.class
-
onUpdateFilter
Class<? extends BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,? extends io.kubernetes.client.common.KubernetesObject>> onUpdateFilter- Default:
- io.micronaut.kubernetes.client.operator.filter.DefaultUpdateFilter.class
-
onDeleteFilter
Class<? extends BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,Boolean>> onDeleteFilter- Default:
- io.micronaut.kubernetes.client.operator.filter.DefaultDeleteFilter.class
-