# shellcheck shell=bash
# shellcheck disable=SC2034 # We declare some shared variables here
# shellcheck source=scripts/shared/lib/source_only
. "${BASH_SOURCE%/*}"/source_only

# Array of all cluster names that we create and deploy on.
declare -ga clusters=(cluster{1..3})

# Designation of the cluster that the broker will be installed on.
broker="${clusters[0]}"

# Map of cluster names to a space separated string, representing a list of nodes to deploy.
# Possible node types are 'control-plane' and 'worker'.
# e.g. cluster_nodes['multi-master']="control-plane control-plane worker worker worker"
declare -gA cluster_nodes

cluster_nodes['cluster1']="control-plane worker"
cluster_nodes['cluster2']="control-plane worker"
cluster_nodes['cluster3']="control-plane worker worker"

# Map of cluster names to values specifying if submariner should be installed.
# Only "true" string means its installed, otherwise it's not.
declare -gA cluster_subm

cluster_subm['cluster1']="true"
cluster_subm['cluster2']="true"
cluster_subm['cluster3']="true"

# Map of cluster names to values specifying which CNI to install.
# Empty (or not set) value means default CNI.
# Currently only "weave" is supported.
declare -gA cluster_cni

cluster_cni['cluster2']="weave"
cluster_cni['cluster3']="weave"
