From 4dfde5fdf26bfde5a8450e69579ac330d1d12053 Mon Sep 17 00:00:00 2001 From: Steve Kriss Date: Mon, 30 Oct 2023 15:02:46 -0600 Subject: [PATCH] test/scripts: check for gateway-system namespace (#5916) In install-provisioner-release.sh, check for the gateway-system namespace before waiting on the admission server. Signed-off-by: Steve Kriss --- test/scripts/install-provisioner-release.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/scripts/install-provisioner-release.sh b/test/scripts/install-provisioner-release.sh index 79796942b42..655816b1530 100755 --- a/test/scripts/install-provisioner-release.sh +++ b/test/scripts/install-provisioner-release.sh @@ -34,7 +34,11 @@ fi # Install the Contour version. ${KUBECTL} apply -f "https://projectcontour.io/quickstart/$VERS/contour-gateway-provisioner.yaml" -# Wait for admission server to be fully rolled out. -${KUBECTL} rollout status --timeout="${WAITTIME}" -n gateway-system deployment/gateway-api-admission-server +# Wait for Gateway API admission server to be fully rolled out. +# This is only for backwards compatibility, the Gateway API +# admission server is not included as of Contour 1.27. +if ${KUBECTL} get namespace gateway-system > /dev/null 2>&1; then + ${KUBECTL} rollout status --timeout="${WAITTIME}" -n gateway-system deployment/gateway-api-admission-server +fi ${KUBECTL} wait --timeout="${WAITTIME}" -n projectcontour -l control-plane=contour-gateway-provisioner deployments --for=condition=Available