From: aticig Date: Thu, 10 Feb 2022 12:16:04 +0000 (+0300) Subject: Bug 1841: LTS Support update helm version in community installer X-Git-Tag: v10.1.0-rc1~12 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=2bfdd74dc93577334df848579600c2d3e330192c;p=osm%2Fdevops.git Bug 1841: LTS Support update helm version in community installer Updating Helm3 version in Community Installer Change-Id: I1d6ca146da2a00e13623303d64c015506e602fe5 Signed-off-by: aticig --- diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index e0508daf..31a79afa 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -1019,19 +1019,22 @@ function deploy_osm_pla_service() { } #Install Helm v3 +#Helm releases can be found here: https://github.com/helm/helm/releases function install_helm() { - helm > /dev/null 2>&1 - if [ $? != 0 ] ; then + HELM_VERSION="v3.7.2" + if ! [[ "$(helm version --short 2>/dev/null)" =~ ^v3.* ]]; then # Helm is not installed. Install helm - echo "Helm is not installed, installing ..." - curl https://get.helm.sh/helm-v3.6.3-linux-amd64.tar.gz --output helm-v3.6.3.tar.gz - tar -zxvf helm-v3.6.3.tar.gz + echo "Helm3 is not installed, installing ..." + curl https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz --output helm-${HELM_VERSION}.tar.gz + tar -zxvf helm-${HELM_VERSION}.tar.gz sudo mv linux-amd64/helm /usr/local/bin/helm rm -r linux-amd64 - rm helm-v3.6.3.tar.gz - helm repo add stable https://charts.helm.sh/stable - helm repo update + rm helm-${HELM_VERSION}.tar.gz + else + echo "Helm3 is already installed. Skipping installation..." fi + helm repo add stable https://charts.helm.sh/stable + helm repo update } function parse_yaml() {