From b4519fe0555343e3a010b65f47a6e0db5b88953e Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Thu, 3 Dec 2020 02:04:08 -0800 Subject: [PATCH] Add helm version check to bootstrap.sh --- charts/kubezero/bootstrap.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/kubezero/bootstrap.sh b/charts/kubezero/bootstrap.sh index ab748e0..c96c708 100755 --- a/charts/kubezero/bootstrap.sh +++ b/charts/kubezero/bootstrap.sh @@ -10,6 +10,9 @@ API_VERSIONS="-a monitoring.coreos.com/v1" DEPLOY_DIR=$( dirname $( realpath $0 )) which yq || { echo "yq not found!"; exit 1; } +which helm || { echo "helm not found!"; exit 1; } +helm_version=$(helm version --short) +echo $helm_version | grep -qe "^v3.[3-9]" || { echo "Helm version >= 3.3 required!"; exit 1; } TMPDIR=$(mktemp -d kubezero.XXX)