Skip to content

Commit f0acab3

Browse files
authored
fix(docs): Update getting-started script pre-26.3.0 (#910)
chore: Add wait conditions to getting-started script
1 parent a33c247 commit f0acab3

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

docs/modules/nifi/examples/getting_started/getting_started.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ then
2020
exit 1
2121
fi
2222

23+
echo "Waiting for node(s) to be ready..."
24+
kubectl wait node --all --for=condition=Ready --timeout=120s
25+
2326
cd "$(dirname "$0")"
2427

2528
case "$1" in
@@ -48,6 +51,9 @@ exit 1
4851
;;
4952
esac
5053

54+
# TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been implemented (see that issue for details).
55+
until kubectl get crd nificlusters.nifi.stackable.tech >/dev/null 2>&1; do echo "Waiting for CRDs to be installed" && sleep 1; done
56+
5157
echo "Create NiFi admin credentials"
5258
# tag::install-nifi-credentials[]
5359
kubectl apply -f - <<EOF

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ then
2020
exit 1
2121
fi
2222

23+
echo "Waiting for node(s) to be ready..."
24+
kubectl wait node --all --for=condition=Ready --timeout=120s
25+
2326
cd "$(dirname "$0")"
2427

2528
case "$1" in
@@ -48,6 +51,9 @@ exit 1
4851
;;
4952
esac
5053

54+
# TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been implemented (see that issue for details).
55+
until kubectl get crd nificlusters.nifi.stackable.tech >/dev/null 2>&1; do echo "Waiting for CRDs to be installed" && sleep 1; done
56+
5157
echo "Create NiFi admin credentials"
5258
# tag::install-nifi-credentials[]
5359
kubectl apply -f - <<EOF

0 commit comments

Comments
 (0)