find_secondary_pod_ips_from_instances

Function find_secondary_pod_ips_from_instances 

Source
pub async fn find_secondary_pod_ips_from_instances(
    client: &Client,
    instance_refs: &[InstanceReference],
) -> Result<Vec<String>>
Expand description

Finds all pod IPs from a list of instance references, filtering by role.

Queries each Bind9Instance resource to determine its role, then collects pod IPs only from secondary instances. This is event-driven as it reacts to the current state of Bind9Instance resources rather than caching.

§Arguments

  • client - Kubernetes API client
  • instance_refs - Instance references to query

§Returns

Vector of pod IP addresses from secondary instances only

§Errors

Returns an error if Kubernetes API calls fail.