create_managed_instance

Function create_managed_instance 

Source
pub async fn create_managed_instance(
    client: &Client,
    namespace: &str,
    cluster_name: &str,
    role: ServerRole,
    index: usize,
    common_spec: &Bind9ClusterCommonSpec,
    _is_global: bool,
) -> Result<()>
Expand description

Create a managed Bind9Instance resource

This function is public to allow reuse by ClusterBind9Provider reconciler.

§Arguments

  • client - Kubernetes API client
  • namespace - Namespace for the instance
  • cluster_name - Name of the cluster (namespace-scoped or global)
  • role - Role of the instance (Primary or Secondary)
  • index - Index of this instance within its role
  • common_spec - The cluster’s common specification
  • is_global - Whether this is for a global cluster

§Errors

Returns an error if instance creation fails