pub async fn find_all_primary_pods(
client: &Client,
namespace: &str,
cluster_name: &str,
is_cluster_provider: bool,
) -> Result<Vec<PodInfo>>Expand description
Find ALL PRIMARY pods for the given Bind9Cluster or ClusterBind9Provider
Returns all running pods for PRIMARY instances in the cluster to ensure zone changes are applied to all primary replicas consistently.
§Arguments
client- Kubernetes API clientnamespace- Namespace to search in (ignored ifis_cluster_provideris true)cluster_name- Name of theBind9ClusterorClusterBind9Provideris_cluster_provider- If true, searches all namespaces; if false, searches only the specified namespace
§Returns
A vector of PodInfo containing all running PRIMARY pods
§Errors
Returns an error if Kubernetes API operations fail