Module dnszone

Module dnszone 

Source
Expand description

DNS zone reconciliation logic.

This module handles the creation and management of DNS zones on BIND9 servers. It supports both primary and secondary zone configurations.

Structs§

EndpointAddress
Structure representing an endpoint (pod IP and port)
PodInfo
Helper struct for pod information

Functions§

add_dnszone
Adds a DNS zone to all primary instances in the cluster.
add_dnszone_to_secondaries
Adds a DNS zone to all secondary instances in the cluster with primaries configured.
delete_dnszone
Deletes a DNS zone and its associated zone files.
find_all_primary_pods
Find ALL PRIMARY pods for the given Bind9Cluster or ClusterBind9Provider
find_zones_selecting_record
Find all DNSZones that have selected a given record via label selectors.
for_each_primary_endpoint
Execute an operation on all endpoints of all primary instances in a cluster.
for_each_secondary_endpoint
Execute an operation on all SECONDARY endpoints for a cluster.
get_cluster_ref_from_spec
Helper function to extract and validate cluster reference from DNSZoneSpec.
get_endpoint
Get all endpoints for a service with a specific port name
reconcile_dnszone
Reconciles a DNSZone resource.