@@ -21,7 +21,7 @@ for i in {1..2}; do
21
21
kind delete cluster -n " ${SOLO_CLUSTER_NAME} -c${i} " || true
22
22
done
23
23
24
- docker network rm kind
24
+ docker network rm -f kind || true
25
25
docker network create kind --scope local --subnet 172.19.0.0/16 --driver bridge
26
26
27
27
# Setup Helm Repos
@@ -40,7 +40,10 @@ for i in {1..2}; do
40
40
41
41
kubectl apply -f " ${SCRIPT_PATH} /metallb-cluster-${i} .yaml"
42
42
43
- " ${CLUSTER_DIAGNOSTICS_PATH} " /deploy.sh
43
+ # Deploy the diagnostics container if not running in CI
44
+ if [[ -z " ${CI} " ]]; then
45
+ " ${CLUSTER_DIAGNOSTICS_PATH} " /deploy.sh
46
+ fi
44
47
done
45
48
46
49
# **********************************************************************************************************************
52
55
# Init and deploy a network for e2e tests in (test/e2e/core)
53
56
# -d ${SOLO_CHARTS_DIR} is optional, if you want to use a local chart, it will be ignored if not set
54
57
# **********************************************************************************************************************
55
- # SOLO_CLUSTER_SETUP_NAMESPACE=solo-setup
56
- # npm run build
57
- # npm run solo -- init || exit 1 # cache args for subsequent commands
58
- # npm run solo -- cluster setup -s "${SOLO_CLUSTER_SETUP_NAMESPACE}" || exit 1
59
- # helm list --all-namespaces
60
- # sleep 10 # give time for solo-setup to finish deploying
58
+ SOLO_CLUSTER_SETUP_NAMESPACE=solo-setup
59
+ npm run build
60
+ npm run solo -- init || exit 1 # cache args for subsequent commands
61
+
62
+ for i in {1..2}; do
63
+ kubectl config use-context " kind-${SOLO_CLUSTER_NAME} -c${i} "
64
+ npm run solo -- cluster setup -s " ${SOLO_CLUSTER_SETUP_NAMESPACE} " || exit 1
65
+ helm list --all-namespaces
66
+ done
67
+
68
+ kubectl config use-context " kind-${SOLO_CLUSTER_NAME} -c1"
69
+ sleep 10 # give time for solo-setup to finish deploying
0 commit comments