Skip to content

Commit

Permalink
test/scripts: check for gateway-system namespace (#5916)
Browse files Browse the repository at this point in the history
In install-provisioner-release.sh, check for
the gateway-system namespace before waiting
on the admission server.

Signed-off-by: Steve Kriss <[email protected]>
  • Loading branch information
skriss authored Oct 30, 2023
1 parent 9be9806 commit 4dfde5f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/scripts/install-provisioner-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4dfde5f

Please sign in to comment.