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 the
SharedIndexInformer
will be created by ResourceEventHandlerBeanListener
.- Since:
- 3.1
- Author:
- Pavol Gressa
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe watched resource api group.Informer label selector.Informer label selector supplier.Watched resource namespace.String[]
Watched resource namespaces.Namespaces supplier bean class.The watched resource plural.long
How often to check if the listener need a resync. -
Field Summary
-
Field Details
-
ALL_NAMESPACES
- See Also:
-
RESOLVE_AUTOMATICALLY
- See Also:
-
-
Element Details
-
-
resourcePlural
String resourcePluralThe watched resource plural. For example forV1ConfigMap
it isconfigmaps
. To find the proper resource plural visit the Kubernetes API Reference. By default, the api group is automatically evaluated byDiscovery
.- Returns:
- resource plural
- Default:
- "RESOLVE_AUTOMATICALLY"
-
apiGroup
String apiGroupThe watched resource api group. For example forV1Job
it isbatch
. To find proper resource api group visit Kubernetes API Reference. By default, the api group is automatically evaluated byDiscovery
.- Returns:
- api group
- Default:
- "RESOLVE_AUTOMATICALLY"
-
namespace
String namespaceWatched resource namespace. If empty then namespace is resolved byNamespaceResolver
. To watch resources from all namespaces configure this parameter toALL_NAMESPACES
.- Returns:
- namespace
- Default:
- "RESOLVE_AUTOMATICALLY"
-
namespaces
String[] namespacesWatched resource namespaces. If empty then namespace is resolved byNamespaceResolver
.- Returns:
- array of namespace names
- Default:
- {}
-
namespacesSupplier
Namespaces supplier bean class.- Returns:
- supplier class
- Default:
- io.micronaut.kubernetes.client.informer.EmptyNamespacesSupplier.class
-
resyncCheckPeriod
long resyncCheckPeriodHow often to check if the listener need a resync.- Returns:
- resync check period, if 0L returned then default minimal resync interval is used
- See Also:
-
DefaultSharedIndexInformer
- 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.informer.EmptyLabelSupplier.class
-