handle_duplicate_zone

Function handle_duplicate_zone 

Source
pub async fn handle_duplicate_zone(
    client: &Client,
    namespace: &str,
    name: &str,
    duplicate_info: &DuplicateZoneInfo,
    status_updater: &mut DNSZoneStatusUpdater,
) -> Result<()>
Expand description

Handle duplicate zone conflicts by setting Ready=False and stopping reconciliation.

When a duplicate zone is detected, this function:

  1. Logs a warning with details about the conflict
  2. Updates the status with Ready=False and DuplicateZone condition
  3. Applies the status to the API server

§Arguments

  • client - Kubernetes client
  • namespace - Namespace of the conflicting DNSZone
  • name - Name of the conflicting DNSZone
  • duplicate_info - Information about the duplicate zone conflict
  • status_updater - Status updater to apply the condition

§Errors

Returns an error if the status update fails