fix: retry stale flux health waits
Deploy Cluster / Terraform (push) Has been cancelled
Deploy Cluster / Ansible (push) Has been cancelled

This commit is contained in:
2026-05-03 22:55:40 +00:00
parent 10e4390eb3
commit 877dd027ea
+4 -1
View File
@@ -1174,8 +1174,11 @@ jobs:
if printf '%s' "${message}" | grep -q 'rancher-webhook'; then if printf '%s' "${message}" | grep -q 'rancher-webhook'; then
echo "Kustomization ${name} is blocked by Rancher webhook admission; waiting for webhook endpoints and retrying" echo "Kustomization ${name} is blocked by Rancher webhook admission; waiting for webhook endpoints and retrying"
wait_for_rancher_webhook_if_present wait_for_rancher_webhook_if_present
fi
echo "Forcing retry for Kustomization ${name} after failed readiness wait"
kubectl -n flux-system annotate "kustomization/${name}" reconcile.fluxcd.io/requestedAt="$(date +%s)" --overwrite >/dev/null kubectl -n flux-system annotate "kustomization/${name}" reconcile.fluxcd.io/requestedAt="$(date +%s)" --overwrite >/dev/null
kubectl -n flux-system wait --for=condition=Ready "kustomization/${name}" --timeout="${timeout}" if kubectl -n flux-system wait --for=condition=Ready "kustomization/${name}" --timeout="${timeout}"; then
return 0 return 0
fi fi