From 6d3c59ad8d57827885fbcc2355fa3730e1caa312 Mon Sep 17 00:00:00 2001 From: jenkins Date: Thu, 18 Jun 2026 20:27:03 -0300 Subject: [PATCH] recovery(ananke): fetch flux source before root thaw --- scripts/cluster_power_recovery.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/cluster_power_recovery.sh b/scripts/cluster_power_recovery.sh index e7f8aa75..4fba34fd 100755 --- a/scripts/cluster_power_recovery.sh +++ b/scripts/cluster_power_recovery.sh @@ -1166,6 +1166,10 @@ prepare_recovery_flux_root_apply_window() { patch_flux_suspend_all true patch_kustomization_suspend flux-system false + if command -v flux >/dev/null 2>&1; then + run flux reconcile source git flux-system -n flux-system --timeout=3m || true + fi + if kubectl -n flux-system get deployment kustomize-controller >/dev/null 2>&1; then run kubectl -n flux-system scale deployment kustomize-controller --replicas=1 kubectl -n flux-system rollout status deployment/kustomize-controller --timeout=2m || warn "kustomize-controller did not become Ready for Flux root apply." @@ -1583,7 +1587,6 @@ resume_deadlock_automation_after_core_recovery() { run kubectl -n flux-system scale deployment helm-controller --replicas=1 fi if command -v flux >/dev/null 2>&1; then - run flux reconcile source git flux-system -n flux-system --timeout=3m || true if [[ "${RECOVERY_FLUX_APPLY_BOOTSTRAP_KUSTOMIZATION}" == "1" || "${RECOVERY_FLUX_APPLY_BOOTSTRAP_KUSTOMIZATION}" == "true" ]]; then run flux reconcile kustomization flux-system -n flux-system --timeout="${RECOVERY_FLUX_ROOT_APPLY_TIMEOUT}" || warn "flux-system Kustomization did not apply the recovery source revision before final suspension." fi