Module helpers

Module helpers 

Source
Expand description

Helper functions for DNS zone reconciliation.

This module contains the validation and change detection helper functions extracted from the main reconcile_dnszone() function to improve maintainability.

Functions§

detect_instance_changes
Detect if the instance list changed between watch event and re-fetch.
detect_spec_changes
Detect if the zone spec has changed since last reconciliation.
for_each_instance_endpoint
Execute an operation on all endpoints for a list of instance references.
get_endpoint
Get all ready endpoints for a service.
handle_duplicate_zone
Handle duplicate zone conflicts by setting Ready=False and stopping reconciliation.
load_rndc_key
Load RNDC key from the instance’s secret.
refetch_zone
Re-fetch a DNSZone to get the latest status.