reconcile_bind9cluster

Function reconcile_bind9cluster 

Source
pub async fn reconcile_bind9cluster(
    ctx: Arc<Context>,
    cluster: Bind9Cluster,
) -> Result<()>
Expand description

Reconciles a Bind9Cluster resource.

This function orchestrates the complete cluster reconciliation workflow:

  1. Checks if the cluster is being deleted and handles cleanup
  2. Adds finalizer if not present
  3. Detects drift in managed instances
  4. Creates/updates cluster ConfigMap
  5. Reconciles managed instances
  6. Updates cluster status based on instance health

§Arguments

  • ctx - Operator context with Kubernetes client and reflector stores
  • cluster - The Bind9Cluster resource to reconcile

§Returns

  • Ok(()) - If reconciliation succeeded
  • Err(_) - If status update failed

§Errors

Returns an error if Kubernetes API operations fail or status update fails.