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

make service protection an option #618

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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