Skip to content

Commit fe5b8e0

Browse files
authored
fix(docs): Update getting-started script pre-26.3.0 (#813)
* chore: Add wait conditions to getting-started script * chore: Update OPA version in template
1 parent be348d3 commit fe5b8e0

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

docs/modules/opa/examples/getting_started/getting_started.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ then
1717
exit 1
1818
fi
1919

20+
echo "Waiting for node(s) to be ready..."
21+
kubectl wait node --all --for=condition=Ready --timeout=120s
22+
2023
case "$1" in
2124
"helm")
2225
echo "Installing operators with Helm"
@@ -36,6 +39,9 @@ exit 1
3639
;;
3740
esac
3841

42+
# TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been implemented (see that issue for details).
43+
until kubectl get crd opaclusters.opa.stackable.tech >/dev/null 2>&1; do echo "Waiting for CRDs to be installed" && sleep 1; done
44+
3945
echo "Creating OPA cluster"
4046
# tag::apply-opa-cluster[]
4147
kubectl apply -f opa.yaml

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ then
1717
exit 1
1818
fi
1919

20+
echo "Waiting for node(s) to be ready..."
21+
kubectl wait node --all --for=condition=Ready --timeout=120s
22+
2023
case "$1" in
2124
"helm")
2225
echo "Installing operators with Helm"
@@ -36,6 +39,9 @@ exit 1
3639
;;
3740
esac
3841

42+
# TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been implemented (see that issue for details).
43+
until kubectl get crd opaclusters.opa.stackable.tech >/dev/null 2>&1; do echo "Waiting for CRDs to be installed" && sleep 1; done
44+
3945
echo "Creating OPA cluster"
4046
# tag::apply-opa-cluster[]
4147
kubectl apply -f opa.yaml

docs/modules/opa/examples/getting_started/opa.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: simple-opa
66
spec:
77
image:
8-
productVersion: "1.8.0"
8+
productVersion: "1.12.3"
99
servers:
1010
roleGroups:
1111
default: {}

0 commit comments

Comments
 (0)