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
  • Field Details

  • Element Details

    • apiType

      Class<? extends io.kubernetes.client.common.KubernetesObject> apiType
      The resource type.
      Returns:
      resource type.
    • apiListType

      Class<? extends io.kubernetes.client.common.KubernetesListObject> apiListType
      The resource list type.
      Returns:
      list type
    • resourcePlural

      String resourcePlural
      The watched resource plural. For example for V1ConfigMap it is configmaps. To find the proper resource plural visit the Kubernetes API Reference. By default, the api group is automatically evaluated by Discovery.
      Returns:
      resource plural
      Default:
      "RESOLVE_AUTOMATICALLY"
    • apiGroup

      String apiGroup
      The watched resource api group. For example for V1Job it is batch. To find proper resource api group visit Kubernetes API Reference. By default, the api group is automatically evaluated by Discovery.
      Returns:
      api group
      Default:
      "RESOLVE_AUTOMATICALLY"
    • namespace

      String namespace
      Watched resource namespace. If empty then namespace is resolved by NamespaceResolver. To watch resources from all namespaces configure this parameter to ALL_NAMESPACES.
      Returns:
      namespace
      Default:
      "RESOLVE_AUTOMATICALLY"
    • namespaces

      String[] namespaces
      Watched resource namespaces. If empty then namespace is resolved by NamespaceResolver.
      Returns:
      array of namespace names
      Default:
      {}
    • namespacesSupplier

      Class<? extends Supplier<String[]>> namespacesSupplier
      Namespaces supplier bean class.
      Returns:
      supplier class
      Default:
      io.micronaut.kubernetes.client.informer.EmptyNamespacesSupplier.class
    • resyncCheckPeriod

      long resyncCheckPeriod
      How 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 labelSelector
      Informer label selector.
      Returns:
      label selector
      See Also:
      Default:
      ""
    • labelSelectorSupplier

      Class<? extends Supplier<String>> labelSelectorSupplier
      Informer label selector supplier.
      Returns:
      label selector supplier
      See Also:
      Default:
      io.micronaut.kubernetes.client.informer.EmptyLabelSupplier.class