fix: tolerate stale tailscale service readiness
Deploy Cluster / Terraform (push) Successful in 36s
Deploy Cluster / Ansible (push) Successful in 16m56s

This commit is contained in:
2026-05-04 20:59:04 +00:00
parent fa356ae204
commit df93f8bb5f
+4 -1
View File
@@ -169,7 +169,10 @@ check_service() {
if ! retry 18 10 service_proxy_ready "$namespace" "$service_name"; then
echo "Tailscale proxy did not become Ready for $namespace/$service_name; restarting proxy and retrying" >&2
restart_service_tailscale_proxy "$namespace" "$service_name"
retry 18 10 service_proxy_ready "$namespace" "$service_name"
if ! retry 6 10 service_proxy_ready "$namespace" "$service_name"; then
echo "Tailscale proxy pod is Ready but service condition is still stale for $namespace/$service_name; continuing with endpoint checks" >&2
"${KUBECTL[@]}" -n "$namespace" get svc "$service_name" -o yaml >&2 || true
fi
fi
if ! retry 18 10 assigned_hostname_matches "$namespace" "$service_name" "$hostname"; then