fix: retry stale flux health waits
This commit is contained in:
@@ -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
|
||||
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 wait --for=condition=Ready "kustomization/${name}" --timeout="${timeout}"
|
||||
if kubectl -n flux-system wait --for=condition=Ready "kustomization/${name}" --timeout="${timeout}"; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user