Annotation Interface Informer
@Retention(RUNTIME)
@AroundConstruct
@Target({TYPE,ANNOTATION_TYPE})
@Bean
@DefaultScope(io.micronaut.context.annotation.Context.class)
public @interface Informer
Annotation used in combination with
ResourceEventHandler
will cause
SharedIndexInformer
be created by ResourceEventHandlerBeanListener
.-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionInformer label selector.Informer label selector supplier.Watched resource namespace.String[]
Watched resource namespaces.Namespaces supplier bean class.long
Period in milliseconds which defines how often to check whether the listener need a resync. -
Field Summary
-
Field Details
-
ALL_NAMESPACES
- See Also:
-
RESOLVE_AUTOMATICALLY
- See Also:
-
-
Element Details
-
apiType
Class<? extends KubernetesObject> apiTypeThe resource type.- Returns:
- resource type.
-
-
-
namespace
String namespaceWatched resource namespace. If empty then namespace is resolved byInformerNamespaceResolver
. To watch resources from all namespaces configure this parameter toALL_NAMESPACES
.- Returns:
- namespace name
- Default:
- "RESOLVE_AUTOMATICALLY"
-
namespaces
String[] namespacesWatched resource namespaces. If empty then namespace is resolved byInformerNamespaceResolver
.- Returns:
- array of namespace names
- Default:
- {}
-
namespacesSupplier
Namespaces supplier bean class.- Returns:
- supplier class
- Default:
- io.micronaut.kubernetes.client.openapi.informer.handler.EmptyNamespacesSupplier.class
-
resyncCheckPeriod
long resyncCheckPeriodPeriod in milliseconds which defines how often to check whether the listener need a resync.- Returns:
- resync check period, if 0L returned then default minimal resync interval is used
- Default:
- 0L
-
labelSelector
String labelSelectorInformer label selector.- Returns:
- label selector
- See Also:
- Default:
- ""
-
labelSelectorSupplier
Informer label selector supplier.- Returns:
- label selector supplier
- See Also:
- Default:
- io.micronaut.kubernetes.client.openapi.informer.handler.EmptyLabelSupplier.class
-