Skip to content

Commit

Permalink
Update helm repo setup scripts
Browse files Browse the repository at this point in the history
Signed-off-by: nshankar <[email protected]>
  • Loading branch information
nshankar13 committed Aug 14, 2024
1 parent 84669cd commit d5bf3c0
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
32 changes: 32 additions & 0 deletions content/en/docs/setup/install/multicluster/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,35 @@ function verify_load_balancing
_verify_contains snip_verifying_crosscluster_traffic_3 "$EXPECTED_RESPONSE_FROM_CLUSTER1"
_verify_contains snip_verifying_crosscluster_traffic_3 "$EXPECTED_RESPONSE_FROM_CLUSTER2"
}

# For Helm multi-cluster installation steps

function create_istio_system_ns
{
snip_create_istio_system_namespace_cluster_1
snip_create_istio_system_namespace_cluster_1
}

function setup_helm_repo
{
snip_setup_helm_repo_cluster_1
snip_setup_helm_repo_cluster_2
}

snip_create_istio_system_namespace_cluster_1() {
kubectl create namespace istio-system --kube-context ${CTX_CLUSTER1}
}

snip_create_istio_system_namespace_cluster_2() {
kubectl create namespace istio-system --kube-context ${CTX_CLUSTER2}
}

snip_setup_helm_repo_cluster_1() {
helm repo add istio https://istio-release.storage.googleapis.com/charts --kube-context ${CTX_CLUSTER1}
helm repo update --kube-context ${CTX_CLUSTER1}
}

snip_setup_helm_repo_cluster_2() {
helm repo add istio https://istio-release.storage.googleapis.com/charts --kube-context ${CTX_CLUSTER2}
helm repo update --kube-context ${CTX_CLUSTER2}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ set -o pipefail

source content/en/docs/setup/install/multicluster/common.sh
set_single_network_vars
setup_helm_repo

function install_istio_helm {
# Install Istio on the 2 clusters. Executing in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ set -o pipefail

source content/en/docs/setup/install/multicluster/common.sh
set_multi_network_vars
setup_helm_repo

function install_istio_on_cluster1_helm {
echo "Installing Istio on Primary cluster: ${CTX_CLUSTER1}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ set -o pipefail

source content/en/docs/setup/install/multicluster/common.sh
set_single_network_vars
setup_helm_repo
create_istio_system_ns

function install_istio_on_cluster1_helm {
echo "Installing Istio on Primary cluster: ${CTX_CLUSTER1}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ set -o pipefail

source content/en/docs/setup/install/multicluster/common.sh
set_multi_network_vars
setup_helm_repo
create_istio_system_ns

function install_istio_on_cluster1_helm {
echo "Installing Istio on Primary cluster: ${CTX_CLUSTER1}"
Expand Down

0 comments on commit d5bf3c0

Please sign in to comment.