-
Notifications
You must be signed in to change notification settings - Fork 0
/
demox
executable file
·41 lines (31 loc) · 1020 Bytes
/
demox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
DEMO_DIR="$( dirname "${BASH_SOURCE[0]}" )"
ROOT_DIR="$( cd ${DEMO_DIR}/.. && pwd)"
. demo-magic
TYPE_SPEED=30
# PROMPT_AFTER=1
DEMO_PROMPT="☸️ $ "
NO_WAIT=1
if [ "$1" == "" ]; then
comment "Please include the number prefix to add to your hypershift guest demo cluster"
exit 1
fi
SUFFIX=$1
OCP_VERSION=4.9.5
if [ "$2" != "" ]; then
OCP_VERSION=$2
fi
function comment() {
echo -e '\033[0;33m>>> '$1' <<<\033[0m'
wait
}
comment "Instructions for preparing the environment"
echo "1. Connect to you aws account, this means that the credential file: ~/.aws/credentials exists"
echo "2. In this directory, create the file \"pull-secret\" that has your OpenShift pull secret (not a kube secret)"
echo "3. Connect to the OpenShift cluster to be used as the management cluster for hypershift hosted clusters"
#comment "Install hypershift"
#pe "hypershift install"
comment "Deploy hypershift"
cd hyper
pe "./create-hypershift.sh jnp-demo${SUFFIX} ${OCP_VERSION} -i t3.2xlarge -r 2 -s 35"
cd ..