Interface DetailedCondition<R,P extends io.fabric8.kubernetes.api.model.HasMetadata,T>
- Type Parameters:
R
- the resource type this condition applies toP
- the primary resource type associated with the dependent workflow this condition is part ofT
- the type of the extra information returned by the condition
- All Superinterfaces:
Condition<R,
P>
public interface DetailedCondition<R,P extends io.fabric8.kubernetes.api.model.HasMetadata,T>
extends Condition<R,P>
A condition that can return extra information in addition of whether it is met or not.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.javaoperatorsdk.operator.processing.dependent.workflow.Condition
Condition.Type
-
Method Summary
Modifier and TypeMethodDescriptiondetailedIsMet
(DependentResource<R, P> dependentResource, P primary, Context<P> context) Checks whether a condition holds true for the specifiedDependentResource
, returning additional information as needed.default boolean
Checks whether a condition holds true for a givenDependentResource
based on the observed cluster state.
-
Method Details
-
detailedIsMet
DetailedCondition.Result<T> detailedIsMet(DependentResource<R, P> dependentResource, P primary, Context<P> context) Checks whether a condition holds true for the specifiedDependentResource
, returning additional information as needed.- Parameters:
dependentResource
- theDependentResource
for which we want to check the conditionprimary
- the primary resource being consideredcontext
- the current reconciliationContext
- Returns:
- a
DetailedCondition.Result
instance containing the result of the evaluation of the condition as well as additional detail - See Also:
-
isMet
Description copied from interface:Condition
Checks whether a condition holds true for a givenDependentResource
based on the observed cluster state.- Specified by:
isMet
in interfaceCondition<R,
P extends io.fabric8.kubernetes.api.model.HasMetadata> - Parameters:
dependentResource
- for which the condition applies toprimary
- the primary resource being consideredcontext
- the current reconciliationContext
- Returns:
true
if the condition holds,false
otherwise
-