Fix: inject missing global value

This commit is contained in:
Stefan Reimer 2025-06-19 10:57:34 +01:00
parent d9d0a8a703
commit b729d97bf1
2 changed files with 6 additions and 1 deletions

View File

@ -123,6 +123,11 @@ upgrade_kubezero_config() {
migrate_argo_values.py < "$WORKDIR"/kubezero-values.yaml > "$WORKDIR"/new-kubezero-values.yaml \
&& mv "$WORKDIR"/new-kubezero-values.yaml "$WORKDIR"/kubezero-values.yaml
# V1.32 - Inject new global.apiServerUrl
_API_ENDPOINT=$(kubectl config view | yq .clusters[0].cluster.server | sed -e 's,https://,,' -e 's/:6443//')
yq '.global.apiServerUrl="'$_API_ENDPOINT'"' -i "$WORKDIR"/kubezero-values.yaml
#
update_kubezero_cm
if [ "$ARGOCD" == "true" ]; then

View File

@ -48,7 +48,7 @@ while true; do
sleep 1
done
echo "Once all controller nodes are running on $KUBE_VERSION, <return> to continue"
echo "Once ALL nodes, incl. workers, ALL, are running on $KUBE_VERSION, <return> to continue"
read -r
# Final control plane upgrades