Skip to content

Commit 797d1bf

Browse files
authored
fix(docs): Update getting-started script pre-26.3.0 (#861)
docs(getting_started): Sleep until CRD is installed
1 parent e472aff commit 797d1bf

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ exit 1
4848
;;
4949
esac
5050

51+
# TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been
52+
# implemented (see that issue for details).
53+
until kubectl get crd trinoclusters.trino.stackable.tech >/dev/null 2>&1; do
54+
echo "Waiting for CRDs to be installed"
55+
sleep 1
56+
done
57+
until kubectl get crd trinocatalogs.trino.stackable.tech >/dev/null 2>&1; do
58+
echo "Waiting for CRDs to be installed"
59+
sleep 1
60+
done
61+
5162
echo "Installing Trino cluster from trino.yaml"
5263
# tag::install-trino[]
5364
kubectl apply -f trino.yaml

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ exit 1
4848
;;
4949
esac
5050

51+
# TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been
52+
# implemented (see that issue for details).
53+
until kubectl get crd trinoclusters.trino.stackable.tech >/dev/null 2>&1; do
54+
echo "Waiting for CRDs to be installed"
55+
sleep 1
56+
done
57+
until kubectl get crd trinocatalogs.trino.stackable.tech >/dev/null 2>&1; do
58+
echo "Waiting for CRDs to be installed"
59+
sleep 1
60+
done
61+
5162
echo "Installing Trino cluster from trino.yaml"
5263
# tag::install-trino[]
5364
kubectl apply -f trino.yaml

0 commit comments

Comments
 (0)