-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild_and_setup_everything_bazel.sh
executable file
·51 lines (34 loc) · 1.25 KB
/
build_and_setup_everything_bazel.sh
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
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
source ./cluster/common.sh
# if none is provided set to all by default
[ ! -z "${PROVIDER_NAME}" ] || PROVIDER_NAME="all"
# if no keystone_ssl env is provided set to false by default
[ ! -z "${KEYSTONE_USE_SSL}" ] || KEYSTONE_USE_SSL=false
# When running from the CI: find the runner IP Address will be used as NFS server.
export NFS_IP_ADDRESS=$(ip route get 8.8.8.8 | awk '{ print $7 }' | head -1)
# set NFS_SHARE for CI
export NFS_SHARE="/home/nfsshare"
export INSTALL_NFS=true
export KEYSTONE_USE_SSL
echo "::group::kind_installation"
. ./cluster/kind/kind_with_registry.sh
./cluster/k8s-deploy-kubevirt.sh
./cluster/k8s-deploy-cert-manager.sh
echo "::endgroup::"
echo "::group::build_forklift"
# build forklift and push to local registry
./build_forklift_bazel.sh ${PROVIDER_NAME}
echo "::endgroup::"
echo "::group::deploy_local_forklift"
./cluster/deploy_local_forklift_bazel.sh
echo "::endgroup::"
echo "::group::${PROVIDER_NAME} setup"
./cluster/providers/install-provider.sh "${PROVIDER_NAME}"
echo "::endgroup::"
# grant admin rights so its token can be used to access the API
k8s_grant_permissions
# patch StorageProfile with ReadWriteOnce Access
k8s_patch_storage_profile
echo "CLUSTER=$CLUSTER"
echo "TOKEN=$TOKEN"
echo "NODE_IP=$NODE_IP"