From 24486f12fdbc0b1d3867ba74457613fefd9521ed Mon Sep 17 00:00:00 2001 From: Andrew Kenworthy Date: Tue, 10 Mar 2026 15:41:30 +0100 Subject: [PATCH] wait for nodes and crds --- .../examples/getting_started/code/getting_started.sh | 7 +++++++ .../examples/getting_started/code/getting_started.sh.j2 | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/docs/modules/airflow/examples/getting_started/code/getting_started.sh b/docs/modules/airflow/examples/getting_started/code/getting_started.sh index d27cbaba..1af68745 100755 --- a/docs/modules/airflow/examples/getting_started/code/getting_started.sh +++ b/docs/modules/airflow/examples/getting_started/code/getting_started.sh @@ -17,6 +17,9 @@ then exit 1 fi +echo "Waiting for node(s) to be ready..." +kubectl wait node --all --for=condition=Ready --timeout=120s + echo "Adding bitnami Helm Chart repository and dependencies (Postgresql and Redis)" # tag::helm-add-bitnami-pgs[] helm install airflow-postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \ @@ -71,6 +74,10 @@ exit 1 ;; esac +# As of SDP 26.3 CRDs are managed by the operator not helm, so there should be an initial delay +# to allow the CRDs to be detected +sleep 10 + echo "Creating credentials secret" # tag::apply-airflow-credentials[] kubectl apply -f airflow-credentials.yaml diff --git a/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 b/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 index 85f0f540..3f643447 100755 --- a/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 +++ b/docs/modules/airflow/examples/getting_started/code/getting_started.sh.j2 @@ -17,6 +17,9 @@ then exit 1 fi +echo "Waiting for node(s) to be ready..." +kubectl wait node --all --for=condition=Ready --timeout=120s + echo "Adding bitnami Helm Chart repository and dependencies (Postgresql and Redis)" # tag::helm-add-bitnami-pgs[] helm install airflow-postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \ @@ -71,6 +74,10 @@ exit 1 ;; esac +# As of SDP 26.3 CRDs are managed by the operator not helm, so there should be an initial delay +# to allow the CRDs to be detected +sleep 10 + echo "Creating credentials secret" # tag::apply-airflow-credentials[] kubectl apply -f airflow-credentials.yaml