Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
make service protection an option
Browse files Browse the repository at this point in the history
  • Loading branch information
maleck13 committed Oct 2, 2023
1 parent 0721c54 commit 322294d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion hack/.deployUtils
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ deployOCMHub(){
echo "checking if cluster is single or multi"
if [[ -n "${OCM_SINGLE}" ]]; then
deployOCMSpoke ${clusterName}
configureManagedAddon ${clusterName} ${clusterName}
if [ "${MGC_DEPLOY_SERVICE_PROTECTION}" = true ]; then
echo "deploying kuadrant service protection to ${clusterName}"
configureManagedAddon ${clusterName} ${clusterName}
fi
deployOLM ${KIND_CLUSTER_CONTROL_PLANE}

if ! [[ -n "${minimal}" ]]; then
Expand Down
9 changes: 8 additions & 1 deletion hack/quickstart-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ fi
if [[ -z "${MGC_WORKLOAD_CLUSTERS_COUNT}" ]]; then
MGC_WORKLOAD_CLUSTERS_COUNT=1
fi
if [[ -z "${MGC_DEPLOY_SERVICE_PROTECTION}"]]; then
MGC_DEPLOY_SERVICE_PROTECTION=true
fi


# Make temporary directory for kubeconfig
mkdir -p ${TMP_DIR}
Expand Down Expand Up @@ -103,7 +107,10 @@ if [[ -n "${MGC_WORKLOAD_CLUSTERS_COUNT}" ]]; then
configureMetalLB ${KIND_CLUSTER_WORKLOAD}-${i} $((${metalLBSubnetStart} + ${i}))
deployOLM ${KIND_CLUSTER_WORKLOAD}-${i}
deployOCMSpoke ${KIND_CLUSTER_WORKLOAD}-${i}
configureManagedAddon ${KIND_CLUSTER_CONTROL_PLANE} ${KIND_CLUSTER_WORKLOAD}-${i}
if [ "${MGC_DEPLOY_SERVICE_PROTECTION}" = true ]; then
echo "deploying kuadrant service protection"
configureManagedAddon ${KIND_CLUSTER_CONTROL_PLANE} ${KIND_CLUSTER_WORKLOAD}-${i}
fi
done
fi

Expand Down

0 comments on commit 322294d

Please sign in to comment.