pub struct ConditionRule {
pub condition_type: String,
pub status: String,
pub level: StatusLevel,
}Expand description
A status-inference rule over Kubernetes conditions (status.conditions[]).
The scalar StatusRule cannot express how the majority of modern CRDs signal
readiness — via a typed condition (type + status) rather than a bare phase. This
rule matches the first condition whose type equals Self::condition_type; if
that condition’s status equals Self::status, the rule fires at Self::level.
This is what lets Strimzi Kafka, KubeVirt VirtualMachine, cert-manager Certificate,
Keycloak, Tekton PipelineRun, Karpenter NodePool, and Knative Service all be declared
as data (ADR-0012’s “prove the schema against the hardest lenses” test).
Fields§
§condition_type: StringThe condition type to match, e.g. "Ready", "ReconciliationSucceeded".
status: StringThe condition status to match: "True", "False", or "Unknown" (the three
canonical Kubernetes condition statuses).
level: StatusLevelThe level to assign when the condition matches.
Trait Implementations§
Source§impl Clone for ConditionRule
impl Clone for ConditionRule
Source§fn clone(&self) -> ConditionRule
fn clone(&self) -> ConditionRule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more