Interface ControllerConfiguration

All Known Implementing Classes:
ControllerConfigurationImpl

public interface ControllerConfiguration
The operator controller configuration.
Since:
3.3
Author:
Pavol Gressa
  • Method Summary

    Modifier and Type
    Method
    Description
    The api resource group the operator controller reconciles.
    Class<? extends io.kubernetes.client.common.KubernetesListObject>
    The api resource list type the operator controller reconciles.
    Class<? extends io.kubernetes.client.common.KubernetesObject>
    The api resource type the operator controller reconciles.
    The operator's informer label selector.
    The operator controller name.
    The namespaces from which the operator controller receives the resources for reconciliation.
    @Nullable Predicate<? extends io.kubernetes.client.common.KubernetesObject>
    Predicate that filters added resources before reconciliation.
    @Nullable BiPredicate<? extends io.kubernetes.client.common.KubernetesObject, Boolean>
    Predicate that filters deleted resources before reconciliation.
    @Nullable BiPredicate<? extends io.kubernetes.client.common.KubernetesObject, ? extends io.kubernetes.client.common.KubernetesObject>
    Predicate that filters updated resources before reconciliation.
    The api resource plural the operator controller reconciles.
    How often to check if the listener need a resync.
  • Method Details

    • getName

      String getName()
      The operator controller name. The name is used to uniquely identify the operator in the application context.
      Returns:
      name
    • getApiType

      Class<? extends io.kubernetes.client.common.KubernetesObject> getApiType()
      The api resource type the operator controller reconciles.
      Returns:
      api resource type
    • getApiListType

      Class<? extends io.kubernetes.client.common.KubernetesListObject> getApiListType()
      The api resource list type the operator controller reconciles.
      Returns:
      api resource list type
    • getResourcePlural

      String getResourcePlural()
      The api resource plural the operator controller reconciles.
      Returns:
      api resource plural
    • getApiGroup

      String getApiGroup()
      The api resource group the operator controller reconciles.
      Returns:
      api group
    • getNamespaces

      Set<String> getNamespaces()
      The namespaces from which the operator controller receives the resources for reconciliation.
      Returns:
      namespaces
    • getLabelSelector

      String getLabelSelector()
      The operator's informer label selector.
      Returns:
      label selector
      See Also:
    • getResyncCheckPeriod

      Long getResyncCheckPeriod()
      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
    • getOnAddFilter

      @Nullable Predicate<? extends io.kubernetes.client.common.KubernetesObject> getOnAddFilter()
      Predicate that filters added resources before reconciliation. Default DefaultAddFilter.
      Returns:
      predicate
    • getOnUpdateFilter

      @Nullable BiPredicate<? extends io.kubernetes.client.common.KubernetesObject, ? extends io.kubernetes.client.common.KubernetesObject> getOnUpdateFilter()
      Predicate that filters updated resources before reconciliation. Default DefaultUpdateFilter.
      Returns:
      bipredicate
    • getOnDeleteFilter

      @Nullable BiPredicate<? extends io.kubernetes.client.common.KubernetesObject, Boolean> getOnDeleteFilter()
      Predicate that filters deleted resources before reconciliation. Default DefaultDeleteFilter.
      Returns:
      bipredicate