Skip to main content

Function: isConditionTrue()

function isConditionTrue(conditions: ConditionLike[] | null | undefined, type: string): boolean;

Defined in: lib/k8s/conditions.ts:32

Whether the given conditions report type as met.

A condition is met only when it is present with status 'True'; both 'False' and 'Unknown' count as not met, as does a missing condition.

Parameters​

ParameterType
conditionsConditionLike[] | null | undefined
typestring

Returns​

boolean