mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-06 03:56:34 +00:00
Merge pull request #11293 from wainersm/tests_increase_kbs_timeout
tests/k8s: increase wait time of KBS service ingress
This commit is contained in:
commit
b519e9fdff
@ -429,11 +429,12 @@ function kbs_k8s_deploy() {
|
||||
kbs_k8s_svc_host() {
|
||||
if kubectl get ingress -n "$KBS_NS" 2>/dev/null | grep -q kbs; then
|
||||
local host
|
||||
local timeout=50
|
||||
# The ingress IP address can take a while to show up.
|
||||
SECONDS=0
|
||||
while true; do
|
||||
host=$(kubectl get ingress "${KBS_INGRESS_NAME}" -n "${KBS_NS}" -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
|
||||
[[ -z "${host}" && ${SECONDS} -lt 30 ]] || break
|
||||
[[ -z "${host}" && ${SECONDS} -lt "${timeout}" ]] || break
|
||||
sleep 5
|
||||
done
|
||||
echo "${host}"
|
||||
|
Loading…
Reference in New Issue
Block a user