trigger_record_reconciliation

Function trigger_record_reconciliation 

Source
pub async fn trigger_record_reconciliation(
    client: &Client,
    namespace: &str,
    zone_name: &str,
) -> Result<()>
Expand description

Counts DNS records matching a zone for logging purposes.

Event-Driven Architecture: This function only counts and logs records that have status.zoneRef.zoneName matching the zone. The actual reconciliation is triggered automatically by Kubernetes watches - when the DNSZone status changes, record operators are notified via watch events and reconcile automatically.

This function is called after zone recreation (e.g., pod restarts) to log how many records will be automatically reconciled via the event-driven architecture.

§Arguments

  • client - Kubernetes API client
  • namespace - Namespace to search for records
  • zone_name - Zone FQDN to match

§Errors

Returns an error if listing records fails. Errors are logged but don’t fail the parent DNSZone reconciliation.