pub async fn add_dnszone(
ctx: Arc<Context>,
dnszone: DNSZone,
zone_manager: &Bind9Manager,
status_updater: &mut DNSZoneStatusUpdater,
instance_refs: &[InstanceReference],
) -> Result<ZoneConfigOutcome>Expand description
Adds a DNS zone to all primary instances.
§Arguments
client- Kubernetes API clientdnszone- TheDNSZoneresourcezone_manager- BIND9 manager for adding zone
§Returns
Ok(ZoneConfigOutcome)- Per-instance and per-endpoint configuration counts. An instance counts as configured only if ALL of its ready endpoints accepted the zone, so the instance count is directly comparable with the expected PRIMARY instance count when computing readiness.Err(_)- If zone addition failed on every endpoint
§Errors
Returns an error if BIND9 zone addition fails or if no instances are assigned.
§Panics
Panics if the RNDC key is not loaded by the helper function (should never happen in practice).