pub async fn reconcile_instance_zones(
client: &Client,
stores: &Stores,
instance: &Bind9Instance,
) -> Result<()>Expand description
Reconciles the zones list for a Bind9Instance based on current DNSZone state.
This function performs status-only updates by:
- Querying all
DNSZonesfrom the reflector store (in-memory, no API call) - Filtering to zones that have this instance in their
status.bind9Instances - Patching the instance’s
status.zonesfield if changed
§Arguments
client- Kubernetes API client for status patchingstores- Reflector stores containing allDNSZonesinstance- TheBind9Instanceto reconcile zones for
§Returns
Ok(())- If zone reconciliation succeeded (or no change needed)
§Errors
Returns an error if the Kubernetes API status patch fails.