find_all_primary_pods

Function find_all_primary_pods 

Source
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 client
  • namespace - Namespace to search in (ignored if is_cluster_provider is true)
  • cluster_name - Name of the Bind9Cluster or ClusterBind9Provider
  • is_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