Skip to content

Commit 377a4ed

Browse files
committed
improved wait condition
1 parent 119610c commit 377a4ed

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

docs/modules/hdfs/examples/getting_started/getting_started.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ exit 1
4848
;;
4949
esac
5050

51-
# As of SDP 26.3 CRDs are managed by the operator not helm, so there should be an initial delay
52-
# to allow the CRDs to be detected
53-
sleep 10
51+
# TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been implemented (see that issue for details).
52+
until kubectl get crd hdfsclusters.hdfs.stackable.tech >/dev/null 2>&1; do echo "Waiting for CRDs to be installed" && sleep 1; done
5453

5554
echo "Creating Zookeeper cluster"
5655
# tag::install-zk[]

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ exit 1
4848
;;
4949
esac
5050

51-
# As of SDP 26.3 CRDs are managed by the operator not helm, so there should be an initial delay
52-
# to allow the CRDs to be detected
53-
sleep 10
51+
# TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been implemented (see that issue for details).
52+
until kubectl get crd hdfsclusters.hdfs.stackable.tech >/dev/null 2>&1; do echo "Waiting for CRDs to be installed" && sleep 1; done
5453

5554
echo "Creating Zookeeper cluster"
5655
# tag::install-zk[]

0 commit comments

Comments
 (0)