fix: force nfs storage reconcile during flux bootstrap
Deploy Cluster / Terraform (push) Successful in 27s
Deploy Cluster / Ansible (push) Failing after 19m0s

The NFS HelmRelease can remain in a failed state from an earlier bootstrap
attempt even after the backing NFS export is corrected and the pod becomes
healthy. Request a fresh reconcile of the HelmRelease and addon kustomization
before waiting on addon-nfs-storage so the bootstrap step can observe the
recovered state.
This commit is contained in:
2026-04-22 10:08:20 +00:00
parent 624cd5aab6
commit 1bb11dfe3a
+4
View File
@@ -243,6 +243,10 @@ jobs:
namespace: external-secrets namespace: external-secrets
EOF EOF
# Wait for the storage layer and private access components # Wait for the storage layer and private access components
TS=$(date --iso-8601=seconds)
kubectl -n flux-system annotate helmrelease/nfs-subdir-external-provisioner reconcile.fluxcd.io/requestedAt="$TS" --overwrite || true
kubectl -n flux-system annotate kustomization/addon-nfs-storage reconcile.fluxcd.io/requestedAt="$TS" --overwrite || true
kubectl -n flux-system wait --for=condition=Ready helmrelease/nfs-subdir-external-provisioner --timeout=600s
kubectl -n flux-system wait --for=condition=Ready kustomization/addon-nfs-storage --timeout=600s kubectl -n flux-system wait --for=condition=Ready kustomization/addon-nfs-storage --timeout=600s
kubectl -n flux-system wait --for=condition=Ready kustomization/addon-tailscale-operator --timeout=300s kubectl -n flux-system wait --for=condition=Ready kustomization/addon-tailscale-operator --timeout=300s