pub fn get_instances_from_zone(
dnszone: &DNSZone,
bind9_instances_store: &Store<Bind9Instance>,
) -> Result<Vec<InstanceReference>>Expand description
Get instances from a DNSZone based on bind9_instances_from selectors.
This function:
- Uses the reflector store for O(1) lookups without API calls
- Single source of truth:
DNSZoneowns the zone-instance relationship
§Arguments
dnszone- TheDNSZoneresource to get instances forbind9_instances_store- The reflector store for queryingBind9Instanceresources
§Returns
Ok(Vec<InstanceReference>)- List of instances serving this zoneErr(_)- If no instances match thebind9_instances_fromselectors
§Errors
Returns an error if no instances are found matching the label selectors.