From 877dd027eaee4bea7c4dbf2b141848d62a98aa27 Mon Sep 17 00:00:00 2001 From: MichaelFisher1997 Date: Sun, 3 May 2026 22:55:40 +0000 Subject: [PATCH] fix: retry stale flux health waits --- .gitea/workflows/deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c8606b6..915b006 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1174,8 +1174,11 @@ jobs: if printf '%s' "${message}" | grep -q 'rancher-webhook'; then echo "Kustomization ${name} is blocked by Rancher webhook admission; waiting for webhook endpoints and retrying" wait_for_rancher_webhook_if_present - 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}" + 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 + if kubectl -n flux-system wait --for=condition=Ready "kustomization/${name}" --timeout="${timeout}"; then return 0 fi