Skip to content

Commit c00cb01

Browse files
authored
wait for nodes and crds (#758)
1 parent 4d4c560 commit c00cb01

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

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

Lines changed: 7 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
echo "Adding bitnami Helm Chart repository and dependencies (Postgresql and Redis)"
2124
# tag::helm-add-bitnami-pgs[]
2225
helm install airflow-postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \
@@ -71,6 +74,10 @@ exit 1
7174
;;
7275
esac
7376

77+
# As of SDP 26.3 CRDs are managed by the operator not helm, so there should be an initial delay
78+
# to allow the CRDs to be detected
79+
sleep 10
80+
7481
echo "Creating credentials secret"
7582
# tag::apply-airflow-credentials[]
7683
kubectl apply -f airflow-credentials.yaml

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

Lines changed: 7 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
echo "Adding bitnami Helm Chart repository and dependencies (Postgresql and Redis)"
2124
# tag::helm-add-bitnami-pgs[]
2225
helm install airflow-postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \
@@ -71,6 +74,10 @@ exit 1
7174
;;
7275
esac
7376

77+
# As of SDP 26.3 CRDs are managed by the operator not helm, so there should be an initial delay
78+
# to allow the CRDs to be detected
79+
sleep 10
80+
7481
echo "Creating credentials secret"
7582
# tag::apply-airflow-credentials[]
7683
kubectl apply -f airflow-credentials.yaml

0 commit comments

Comments
 (0)