We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8538e86 commit 11f9d90Copy full SHA for 11f9d90
modules/asm/scripts/create_cpr.sh
@@ -21,8 +21,10 @@ if [ "$#" -lt 3 ]; then
21
exit 1
22
fi
23
24
-echo "Sleeping for CPR... do retries instead..."
25
-sleep 30
+# Wait for the CRD to get created before creating the CPR.
+readonly CPR_RESOURCE=controlplanerevisions.mesh.cloud.google.com
26
+for i in {1..6}; do kubectl get crd ${CPR_RESOURCE} && break || sleep 10; done
27
+kubectl wait --for condition=established --timeout=60s crd/${CPR_RESOURCE}
28
29
REVISION_NAME=$1; shift
30
CHANNEL=$1; shift
0 commit comments