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.
Enums§
- Endpoint
Failure Policy - How
for_each_instance_endpoint_with_policytreats per-instance RNDC-key and endpoint lookup failures.
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.
- for_
each_ instance_ endpoint_ with_ policy - Execute an operation on all endpoints for a list of instance references, with an explicit failure policy for per-instance lookups.
- 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.
- running_
pod_ name_ and_ ip - Extract the name and IP of a pod that is Running and has an IP assigned.