From b6bbb5229b82b244467e400b4df3599c073906ed Mon Sep 17 00:00:00 2001 From: Techassi Date: Wed, 11 Mar 2026 14:23:49 +0100 Subject: [PATCH] chore: Add wait conditions to getting-started script --- .../nifi/examples/getting_started/getting_started.sh | 6 ++++++ .../nifi/examples/getting_started/getting_started.sh.j2 | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docs/modules/nifi/examples/getting_started/getting_started.sh b/docs/modules/nifi/examples/getting_started/getting_started.sh index be646207..6b12b550 100755 --- a/docs/modules/nifi/examples/getting_started/getting_started.sh +++ b/docs/modules/nifi/examples/getting_started/getting_started.sh @@ -20,6 +20,9 @@ then exit 1 fi +echo "Waiting for node(s) to be ready..." +kubectl wait node --all --for=condition=Ready --timeout=120s + cd "$(dirname "$0")" case "$1" in @@ -48,6 +51,9 @@ exit 1 ;; esac +# TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been implemented (see that issue for details). +until kubectl get crd nificlusters.nifi.stackable.tech >/dev/null 2>&1; do echo "Waiting for CRDs to be installed" && sleep 1; done + echo "Create NiFi admin credentials" # tag::install-nifi-credentials[] kubectl apply -f - </dev/null 2>&1; do echo "Waiting for CRDs to be installed" && sleep 1; done + echo "Create NiFi admin credentials" # tag::install-nifi-credentials[] kubectl apply -f - <