find_zones_selecting_record

Function find_zones_selecting_record 

Source
pub async fn find_zones_selecting_record(
    client: &Client,
    record_namespace: &str,
    record_kind: &str,
    record_name: &str,
) -> Result<Vec<(String, String)>>
Expand description

Find all DNSZones that have selected a given record via label selectors.

This function is used by the watch mapper to determine which DNSZones should be reconciled when a DNS record changes. It checks each DNSZone’s status.records list to see if the record is present.

§Arguments

  • client - Kubernetes API client
  • record_namespace - Namespace of the record
  • record_kind - Kind of the record (e.g., "ARecord", "TXTRecord")
  • record_name - Name of the record resource

§Returns

A vector of tuples containing (zone_name, zone_namespace) for all DNSZones that have selected this record.

§Errors

Returns an error if Kubernetes API operations fail.