Skip to content

Commit

Permalink
Update current feature
Browse files Browse the repository at this point in the history
  • Loading branch information
fjammes committed Feb 3, 2025
1 parent aa927b0 commit 50d042e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions e2e/prereq-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,31 @@ set -euxo pipefail
DIR=$(cd "$(dirname "$0")"; pwd -P)

kind_version_opt=""
cluster_name=$(ciux get clustername $DIR/..)
monitoring=false

usage () {
echo "Usage: $0 [-k kind_version] [-m]"
echo " -k kind_version: kind version to install"
echo " -m: install monitoring stack"
exit 1
}

# Get kind version from option -k
while getopts mk: flag
while getopts mk:h flag
do
case "${flag}" in
k) kind_version_opt=--kind-version=${OPTARG};;
m) monitoring=true;;
h) usage;;
*) usage; exit 1;;
esac
done

ktbx install kind $kind_version_opt
ktbx install kubectl
ktbx install helm
ink "Create kind cluster"
cluster_name=$(ciux get clustername $DIR/..)
ktbx create -s --name $cluster_name
ink "Install OLM"
ktbx install olm
Expand Down

0 comments on commit 50d042e

Please sign in to comment.