Class ControllerConfigurationImpl
java.lang.Object
io.micronaut.kubernetes.client.operator.ControllerConfigurationImpl
- All Implemented Interfaces:
ControllerConfiguration
@Internal
public class ControllerConfigurationImpl
extends Object
implements ControllerConfiguration
Implements
ControllerConfiguration
.- Since:
- 3.3
- Author:
- Pavol Gressa
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Operator configuration builder. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
The api resource group the operator controller reconciles.@NonNull Class<? extends io.kubernetes.client.common.KubernetesListObject>
The api resource list type the operator controller reconciles.@NonNull Class<? extends io.kubernetes.client.common.KubernetesObject>
The api resource type the operator controller reconciles.@NonNull String
The operator's informer label selector.@NonNull String
getName()
The operator controller name.The namespaces from which the operator controller receives the resources for reconciliation.Predicate<? extends io.kubernetes.client.common.KubernetesObject>
Predicate that filters added resources before reconciliation.BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,
Boolean> Predicate that filters deleted resources before reconciliation.BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,
? extends io.kubernetes.client.common.KubernetesObject> Predicate that filters updated resources before reconciliation.@NonNull String
The api resource plural the operator controller reconciles.@NonNull Long
How often to check if the listener need a resync.toString()
-
Constructor Details
-
ControllerConfigurationImpl
public ControllerConfigurationImpl()
-
-
Method Details
-
getName
Description copied from interface:ControllerConfiguration
The operator controller name. The name is used to uniquely identify the operator in the application context.- Specified by:
getName
in interfaceControllerConfiguration
- Returns:
- the operator controller name
-
getApiType
Description copied from interface:ControllerConfiguration
The api resource type the operator controller reconciles.- Specified by:
getApiType
in interfaceControllerConfiguration
- Returns:
- api resource type
-
getApiListType
@NonNull public @NonNull Class<? extends io.kubernetes.client.common.KubernetesListObject> getApiListType()Description copied from interface:ControllerConfiguration
The api resource list type the operator controller reconciles.- Specified by:
getApiListType
in interfaceControllerConfiguration
- Returns:
- api resource list type
-
getResourcePlural
Description copied from interface:ControllerConfiguration
The api resource plural the operator controller reconciles.- Specified by:
getResourcePlural
in interfaceControllerConfiguration
- Returns:
- resource plural
-
getApiGroup
Description copied from interface:ControllerConfiguration
The api resource group the operator controller reconciles.- Specified by:
getApiGroup
in interfaceControllerConfiguration
- Returns:
- api group
-
getNamespaces
Description copied from interface:ControllerConfiguration
The namespaces from which the operator controller receives the resources for reconciliation.- Specified by:
getNamespaces
in interfaceControllerConfiguration
- Returns:
- namespaces
-
getLabelSelector
Description copied from interface:ControllerConfiguration
The operator's informer label selector.- Specified by:
getLabelSelector
in interfaceControllerConfiguration
- Returns:
- label selector
- See Also:
-
getResyncCheckPeriod
Description copied from interface:ControllerConfiguration
How often to check if the listener need a resync.- Specified by:
getResyncCheckPeriod
in interfaceControllerConfiguration
- Returns:
- resync check period
- See Also:
-
DefaultSharedIndexInformer
-
getOnAddFilter
Description copied from interface:ControllerConfiguration
Predicate that filters added resources before reconciliation. DefaultDefaultAddFilter
.- Specified by:
getOnAddFilter
in interfaceControllerConfiguration
- Returns:
- add filter predicate
-
getOnUpdateFilter
public BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,? extends io.kubernetes.client.common.KubernetesObject> getOnUpdateFilter()Description copied from interface:ControllerConfiguration
Predicate that filters updated resources before reconciliation. DefaultDefaultUpdateFilter
.- Specified by:
getOnUpdateFilter
in interfaceControllerConfiguration
- Returns:
- update filter predicate
-
getOnDeleteFilter
public BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,Boolean> getOnDeleteFilter()Description copied from interface:ControllerConfiguration
Predicate that filters deleted resources before reconciliation. DefaultDefaultDeleteFilter
.- Specified by:
getOnDeleteFilter
in interfaceControllerConfiguration
- Returns:
- delete filter predicate
-
toString
-