Skip to content

Commit 1b58f2c

Browse files
authored
fix(docs): Update getting-started script pre-26.3.0 (#1014)
docs(getting_started): Sleep until CRD is installed
1 parent 3b9362e commit 1b58f2c

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

docs/modules/zookeeper/examples/getting_started/code/getting_started.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ exit 1
4343
;;
4444
esac
4545

46+
# TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been
47+
# implemented (see that issue for details).
48+
until kubectl get crd zookeeperclusters.zookeeper.stackable.tech >/dev/null 2>&1; do
49+
echo "Waiting for CRDs to be installed"
50+
sleep 1
51+
done
52+
4653
echo "Creating ZooKeeper cluster"
4754
# tag::install-zookeeper[]
4855
kubectl apply -f zookeeper.yaml

docs/modules/zookeeper/examples/getting_started/code/getting_started.sh.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ exit 1
4343
;;
4444
esac
4545

46+
# TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been
47+
# implemented (see that issue for details).
48+
until kubectl get crd zookeeperclusters.zookeeper.stackable.tech >/dev/null 2>&1; do
49+
echo "Waiting for CRDs to be installed"
50+
sleep 1
51+
done
52+
4653
echo "Creating ZooKeeper cluster"
4754
# tag::install-zookeeper[]
4855
kubectl apply -f zookeeper.yaml

0 commit comments

Comments
 (0)