Module status

Module status 

Source
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 explanation
  • lastTransitionTime: 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§

DNSZoneStatusUpdater
Centralized status updater for DNSZone resources.

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).