Skip to content

Commit c17e941

Browse files
author
Felix Hennig
committed
1 parent 7f2bee2 commit c17e941

3 files changed

Lines changed: 37 additions & 13 deletions

File tree

docs/modules/superset/examples/getting_started/getting_started.sh

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,22 @@ echo "Adding 'stackable-dev' Helm Chart repository"
2222
# tag::helm-add-repo[]
2323
helm repo add stackable-dev https://repo.stackable.tech/repository/helm-dev/
2424
# end::helm-add-repo[]
25+
echo "Updating Helm repo"
26+
helm repo update
2527
echo "Installing Operators with Helm"
2628
# tag::helm-install-operators[]
27-
helm install --wait commons-operator stackable-dev/commons-operator --version 0.5.0-nightly
28-
helm install --wait secret-operator stackable-dev/secret-operator --version 0.7.0-nightly
29-
helm install --wait superset-operator stackable-dev/superset-operator --version 0.8.0-nightly
29+
helm install --wait commons-operator stackable-dev/commons-operator --version 0.0.0-dev
30+
helm install --wait secret-operator stackable-dev/secret-operator --version 0.0.0-dev
31+
helm install --wait superset-operator stackable-dev/superset-operator --version 0.0.0-dev
3032
# end::helm-install-operators[]
3133
;;
3234
"stackablectl")
3335
echo "installing Operators with stackablectl"
3436
# tag::stackablectl-install-operators[]
3537
stackablectl operator install \
36-
commons=0.5.0-nightly \
37-
secret=0.7.0-nightly \
38-
superset=0.8.0-nightly
38+
commons=0.0.0-dev \
39+
secret=0.0.0-dev \
40+
superset=0.0.0-dev
3941
# end::stackablectl-install-operators[]
4042
;;
4143
*)
@@ -67,17 +69,27 @@ echo "Creating Superset cluster"
6769
kubectl apply -f superset.yaml
6870
# end::apply-superset-cluster[]
6971

72+
sleep 5
73+
7074
echo "Waiting on SupersetDB ..."
7175
# tag::wait-supersetdb[]
7276
time kubectl wait supersetdb/simple-superset \
7377
--for jsonpath='{.status.condition}'=Ready \
7478
--timeout 600s
7579
# end::wait-supersetdb[]
7680

77-
sleep 5
81+
for (( i=1; i<=15; i++ ))
82+
do
83+
echo "Waiting for SupersetCluster to appear ..."
84+
if eval kubectl get statefulset simple-superset-node-default; then
85+
break
86+
fi
87+
88+
sleep 1
89+
done
7890

7991
echo "Wainting on superset StatefulSet ..."
80-
kubectl rollout status --watch statefulset/simple-superset-node-default
92+
kubectl rollout status --watch statefulset/simple-superset-node-default --timeout 300s
8193

8294
# wait a bit for the port to open
8395
sleep 10

docs/modules/superset/examples/getting_started/getting_started.sh.j2

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ echo "Adding '{{ helm.repo_name }}' Helm Chart repository"
2222
# tag::helm-add-repo[]
2323
helm repo add {{ helm.repo_name }} {{ helm.repo_url }}
2424
# end::helm-add-repo[]
25+
echo "Updating Helm repo"
26+
helm repo update
2527
echo "Installing Operators with Helm"
2628
# tag::helm-install-operators[]
2729
helm install --wait commons-operator {{ helm.repo_name }}/commons-operator --version {{ versions.commons }}
@@ -67,17 +69,27 @@ echo "Creating Superset cluster"
6769
kubectl apply -f superset.yaml
6870
# end::apply-superset-cluster[]
6971

72+
sleep 5
73+
7074
echo "Waiting on SupersetDB ..."
7175
# tag::wait-supersetdb[]
7276
time kubectl wait supersetdb/simple-superset \
7377
--for jsonpath='{.status.condition}'=Ready \
7478
--timeout 600s
7579
# end::wait-supersetdb[]
7680

77-
sleep 5
81+
for (( i=1; i<=15; i++ ))
82+
do
83+
echo "Waiting for SupersetCluster to appear ..."
84+
if eval kubectl get statefulset simple-superset-node-default; then
85+
break
86+
fi
87+
88+
sleep 1
89+
done
7890

7991
echo "Wainting on superset StatefulSet ..."
80-
kubectl rollout status --watch statefulset/simple-superset-node-default
92+
kubectl rollout status --watch statefulset/simple-superset-node-default --timeout 300s
8193

8294
# wait a bit for the port to open
8395
sleep 10

docs/templating_vars.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ helm:
33
repo_name: stackable-dev
44
repo_url: https://repo.stackable.tech/repository/helm-dev/
55
versions:
6-
commons: 0.5.0-nightly
7-
secret: 0.7.0-nightly
8-
superset: 0.8.0-nightly
6+
commons: 0.0.0-dev
7+
secret: 0.0.0-dev
8+
superset: 0.0.0-dev

0 commit comments

Comments
 (0)