Expand description
Status condition helpers for Kubernetes resources.
This module provides utility functions for creating and managing Kubernetes status conditions following the standard conventions.
§Condition Format
Kubernetes conditions follow a standard format:
type: The aspect of the resource being reported (e.g., “Ready”, “Progressing”)status: “True”, “False”, or “Unknown”reason: A programmatic identifier (CamelCase)message: A human-readable explanationlastTransitionTime: RFC3339 timestamp when the condition changed
§Example
use bindy::reconcilers::status::create_condition;
use bindy::crd::Condition;
let condition = create_condition(
"Ready",
"True",
"DeploymentReady",
"All replicas are running"
);Structs§
- DNSZone
Status Updater - Centralized status updater for
DNSZoneresources.
Functions§
- condition_
changed - Check if a condition has changed compared to the existing status.
- conditions_
equal - Compare two condition lists to check if they are semantically equal.
- create_
condition - Create a new Kubernetes condition with the current timestamp.
- find_
condition - Find a condition by type in a list of conditions.
- get_
last_ transition_ time - Get the last transition time from an existing condition, or current time if none exists.
- update_
condition_ in_ memory - Update or add a condition in a mutable conditions list (in-memory, no API call).