-
Notifications
You must be signed in to change notification settings - Fork 1.6k
remove use of istioctl x wait #16515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
058f590
d2dbd15
957c7ff
57cd5c5
df990b2
c10ec0c
7a23cad
c120182
ce680ee
4f8341b
8484c9a
7fd3f4b
c9abfa8
3538a9c
838397c
a6c7f89
0cd3471
d5edbd0
71487b5
6d29b4a
9b6b1b6
caff24d
171c7f9
278ff9e
7bd8949
d2146d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,22 +105,20 @@ _wait_for_statefulset() { | |
fi | ||
} | ||
|
||
# Wait for Istio config to propagate | ||
# Wait for resource to be created | ||
# usage: _wait_for_istio <kind> <namespace> <name> | ||
_wait_for_istio() { | ||
#local kind="$1" | ||
#local namespace="$2" | ||
#local name="$3" | ||
local start=$(date +%s) | ||
sleep 1s | ||
# @TODO: Rewrite this to *NOT* use istioctl experimental wait, since it was removed | ||
# https://github.com/istio/istio.io/issues/16429 | ||
#if ! istioctl experimental wait --for=distribution --timeout=10s "$kind" "$name.$namespace"; then | ||
#echo "Failed distribution of $kind $name in namespace $namespace" | ||
#istioctl ps | ||
#echo "TEST: wait for failed, but continuing." | ||
#fi | ||
echo "Duration: $(($(date +%s)-start)) seconds" | ||
local kind="$1" | ||
local namespace="$2" | ||
local name="$3" | ||
local start_time=$(date +%s) | ||
if ! kubectl wait --for=create -n "$namespace" "$kind/$name" --timeout 30s; then | ||
local end_time=$(date +%s) | ||
echo "Timed out waiting for $kind $name in namespace $namespace to be created." | ||
echo "Duration: $(( end_time - start_time )) seconds" | ||
return 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An important thing to note here is that previously it did not use |
||
fi | ||
sleep 2s | ||
} | ||
|
||
# Wait for named Gateway API gateway to be ready | ||
|
Uh oh!
There was an error while loading. Please reload this page.