pub async fn find_primary_ips_from_instances(
client: &Client,
instance_refs: &[InstanceReference],
) -> Result<Vec<String>>Expand description
Find primary server IPs from a list of instance references.
This is the NEW instance-based approach that replaces cluster-based lookup. It filters the instance refs to only PRIMARY instances, then gets their pod IPs.
§Arguments
client- Kubernetes API clientinstance_refs- List of instance references to search
§Returns
A vector of IP addresses for all running PRIMARY pods across all primary instances
§Errors
Returns an error if Kubernetes API calls fail or no primary pods are found