Minor tweak to detect versions

This commit is contained in:
Stefan Reimer 2023-08-24 15:12:30 +01:00
parent dd8ab36f5a
commit 00990317d2

View File

@ -13,7 +13,7 @@ export WORKDIR=/tmp/kubezero
export HOSTFS=/host export HOSTFS=/host
export CHARTS=/charts export CHARTS=/charts
export KUBE_VERSION=$(kubeadm version -o json | jq -r .clientVersion.gitVersion) export KUBE_VERSION=$(kubeadm version -o json | jq -r .clientVersion.gitVersion)
export KUBE_VERSION_MINOR="v1.$(kubectl version -o json | jq .clientVersion.minor -r)" export KUBE_VERSION_MINOR=$(echo $KUBE_VERSION | sed -e 's/\.[0-9]*$//')
export KUBECONFIG="${HOSTFS}/root/.kube/config" export KUBECONFIG="${HOSTFS}/root/.kube/config"