fix: ensure root app is re-created

This commit is contained in:
Stefan Reimer 2025-03-19 12:39:06 +01:00
parent ab744494e6
commit 63f96e58ba
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,9 @@ pre_control_plane_upgrade_cluster() {
# All things after the first controller / control plane upgrade
post_control_plane_upgrade_cluster() {
echo
# delete previous root app controlled by kubezero module
kubectl delete application kubezero-git-sync -n argocd || true
kubectl delete appproject kubezero -n argocd || true
}

View File

@ -38,7 +38,7 @@ read -r
#[ "$ARGOCD" == "true" ] && kubectl edit app kubezero -n argocd || kubectl edit cm kubezero-values -n kubezero
# upgrade modules
control_plane_upgrade "apply_network, apply_addons, apply_storage, apply_operators"
control_plane_upgrade "apply_kubezero apply_network, apply_addons, apply_storage, apply_operators"
echo "Checking that all pods in kube-system are running ..."
waitSystemPodsRunning