diff --git a/scripts/cluster_power_recovery.sh b/scripts/cluster_power_recovery.sh index 87381d0f..49afefb7 100755 --- a/scripts/cluster_power_recovery.sh +++ b/scripts/cluster_power_recovery.sh @@ -1102,6 +1102,11 @@ force_recovery_flux_suspend_with_controller_stop() { sleep "${RECOVERY_FLUX_SUSPEND_VERIFY_SLEEP_SECONDS}" else warn "Leaving kustomize-controller stopped to preserve the recovery Flux hold." + sleep "${RECOVERY_FLUX_SUSPEND_VERIFY_SLEEP_SECONDS}" + if [[ "${RECOVERY_FLUX_SUSPEND_BOOTSTRAP_KUSTOMIZATION}" == "1" || "${RECOVERY_FLUX_SUSPEND_BOOTSTRAP_KUSTOMIZATION}" == "true" ]]; then + patch_kustomization_suspend flux-system true + fi + patch_recovery_optional_flux_suspend_without_snapshot true fi local unsuspended