Class ControllerConfigurationFactory
java.lang.Object
io.micronaut.kubernetes.client.operator.ControllerConfigurationFactory
Factory for the
ControllerConfiguration
.- Since:
- 3.3
- Author:
- Pavol Gressa
-
Constructor Summary
ConstructorDescriptionControllerConfigurationFactory
(@NonNull io.micronaut.context.BeanContext beanContext, @NonNull InformerApiGroupResolver apiGroupResolver, @NonNull InformerResourcePluralResolver resourcePluralResolver, @NonNull InformerNamespaceResolver namespaceResolver, @NonNull InformerLabelSelectorResolver labelSelectorResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected Predicate<? extends io.kubernetes.client.common.KubernetesObject>
getOnAddFilter
(io.micronaut.core.annotation.AnnotationValue<Operator> operator) Resolve the onAddFilter from the annotation value.protected BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,
Boolean> getOnDeleteFilter
(io.micronaut.core.annotation.AnnotationValue<Operator> operator) Resolve the onDeleteFilter from the annotation value.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.operatorConfiguration
(io.micronaut.core.annotation.AnnotationValue<Operator> annotationValue) Creates theControllerConfiguration
from theOperator
annotation.
-
Constructor Details
-
ControllerConfigurationFactory
public ControllerConfigurationFactory(@NonNull @NonNull io.micronaut.context.BeanContext beanContext, @NonNull @NonNull InformerApiGroupResolver apiGroupResolver, @NonNull @NonNull InformerResourcePluralResolver resourcePluralResolver, @NonNull @NonNull InformerNamespaceResolver namespaceResolver, @NonNull @NonNull InformerLabelSelectorResolver labelSelectorResolver)
-
-
Method Details
-
operatorConfiguration
@Prototype public ControllerConfiguration operatorConfiguration(@Parameter io.micronaut.core.annotation.AnnotationValue<Operator> annotationValue) throws ConfigurationException Creates theControllerConfiguration
from theOperator
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
-