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 clientnamespace- Namespace for the instancecluster_name- Name of the cluster (namespace-scoped or global)role- Role of the instance (Primary or Secondary)index- Index of this instance within its rolecommon_spec- The cluster’s common specificationis_global- Whether this is for a global cluster
§Errors
Returns an error if instance creation fails