From 00990317d2a63bcd487b896cde646f5cad189440 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Thu, 24 Aug 2023 15:12:30 +0100 Subject: [PATCH] Minor tweak to detect versions --- admin/kubezero.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/kubezero.sh b/admin/kubezero.sh index 926a9b4f..b97997db 100755 --- a/admin/kubezero.sh +++ b/admin/kubezero.sh @@ -13,7 +13,7 @@ export WORKDIR=/tmp/kubezero export HOSTFS=/host export CHARTS=/charts 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"