Merge pull request #11293 from wainersm/tests_increase_kbs_timeout

tests/k8s: increase wait time of KBS service ingress
This commit is contained in:
Steve Horsman 2025-05-21 17:14:52 +01:00 committed by GitHub
commit b519e9fdff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}"