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:
- Logs a warning with details about the conflict
- Updates the status with Ready=False and DuplicateZone condition
- Applies the status to the API server
§Arguments
client- Kubernetes clientnamespace- Namespace of the conflicting DNSZonename- Name of the conflicting DNSZoneduplicate_info- Information about the duplicate zone conflictstatus_updater- Status updater to apply the condition
§Errors
Returns an error if the status update fails