mirror of https://github.com/istio/istio.io.git
Fix gtw wait in util functions (#12953)
This commit is contained in:
parent
6844bc02cb
commit
cd2608bf8b
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue