Class ControllerConfigurationFactory

java.lang.Object
io.micronaut.kubernetes.client.operator.ControllerConfigurationFactory

@Factory public class ControllerConfigurationFactory extends Object
Factory for the ControllerConfiguration.
Since:
3.3
Author:
Pavol Gressa
  • Constructor Details

  • Method Details

    • operatorConfiguration

      @Prototype public ControllerConfiguration operatorConfiguration(@Parameter io.micronaut.core.annotation.AnnotationValue<Operator> annotationValue) throws ConfigurationException
      Creates the ControllerConfiguration from the Operator annotation.
      Parameters:
      annotationValue - operator annotation value
      Returns:
      operator configuration
      Throws:
      ConfigurationException - when required configuration is missing
    • getOnAddFilter

      protected Predicate<? extends io.kubernetes.client.common.KubernetesObject> getOnAddFilter(io.micronaut.core.annotation.AnnotationValue<Operator> operator)
      Resolve the onAddFilter from the annotation value.
      Parameters:
      operator - annotation value
      Returns:
      the on add filter predicate
    • getOnUpdateFilter

      protected BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,? extends io.kubernetes.client.common.KubernetesObject> getOnUpdateFilter(io.micronaut.core.annotation.AnnotationValue<Operator> operator)
      Resolve the onUpdateFilter from the annotation value.
      Parameters:
      operator - annotation value
      Returns:
      the on update filter bi predicate
    • getOnDeleteFilter

      protected BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,Boolean> getOnDeleteFilter(io.micronaut.core.annotation.AnnotationValue<Operator> operator)
      Resolve the onDeleteFilter from the annotation value.
      Parameters:
      operator - annotation value
      Returns:
      the on delete filter bi predicate