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

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the operator.
    Class<? extends Predicate<? extends io.kubernetes.client.common.KubernetesObject>>
     
    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

    • name

      String name
      The 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

      Class<? extends Predicate<? extends io.kubernetes.client.common.KubernetesObject>> 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