pub async fn calculate_expected_instance_counts(
client: &Client,
instance_refs: &[InstanceReference],
) -> Result<(usize, usize)>Expand description
Calculate expected instance counts (primary and secondary).
This function filters the instance references to determine how many primary and secondary instances should be configured.
§Arguments
client- Kubernetes API clientinstance_refs- List of instance references assigned to the zone
§Returns
Tuple of (expected_primary_count, expected_secondary_count)
§Errors
Returns an error if Kubernetes API calls fail