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