Fix gtw wait in util functions (#12953)

This commit is contained in:
Frank Budinsky 2023-03-27 11:42:58 -04:00 committed by GitHub
parent 6844bc02cb
commit cd2608bf8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ _wait_for_gateway() {
local namespace="$1"
local name="$2"
local context="${3:-}"
if ! kubectl --context="$context" -n "$namespace" wait --for=condition=ready gtw "$name" --timeout=2m; then
if ! kubectl --context="$context" -n "$namespace" wait --for=condition=programmed gtw "$name" --timeout=2m; then
echo "Failed to deploy gateway $name in namespace $namespace"
exit 1
fi

View File

@ -22,7 +22,7 @@ startup_bookinfo_sample() {
if [ "$GATEWAY_API" == "true" ]; then
kubectl apply -f samples/bookinfo/gateway-api/bookinfo-gateway.yaml
kubectl wait --for=condition=ready gtw bookinfo-gateway --timeout=2m
kubectl wait --for=condition=programmed gtw bookinfo-gateway --timeout=2m
kubectl apply -f samples/bookinfo/platform/kube/bookinfo-versions.yaml
else
kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml