pub fn zones_configured_on_instance(
zones: &[DNSZone],
instance_namespace: &str,
instance_name: &str,
) -> Vec<(String, String)>Expand description
Returns the zones that are configured on a given Bind9Instance.
Used by the DNSZone controller’s Endpoints watch: an Endpoints object
is named after the instance’s Service, and it changes exactly when the set of
ready BIND9 pods for that instance changes - a pod being replaced, a
Deployment being rolled, a node draining. That is precisely when a zone may
have disappeared from a server and must be reconciled, so this maps the
instance back to every zone that expects to be served by it.
Matching is done against status.bind9Instances, the authoritative record of
which instances a zone has been configured on.
§Arguments
zones- The zones to search (typically the reflector store contents)instance_namespace- Namespace of the instance whose pods changedinstance_name- Name of the instance whose pods changed
§Returns
(namespace, name) of every zone configured on that instance.