From 32ac1e6c791c485d9d344af1448cf5f3952637b4 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 1 Apr 2024 17:02:14 +0200 Subject: [PATCH] Remove install_helm function from install_kubeadm_cluster Change-Id: I4dce361ac30b1df070f469951ce0f3cf909c38f0 Signed-off-by: garciadeblas --- installers/install_kubeadm_cluster.sh | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/installers/install_kubeadm_cluster.sh b/installers/install_kubeadm_cluster.sh index feb1e59b..64b61ba2 100755 --- a/installers/install_kubeadm_cluster.sh +++ b/installers/install_kubeadm_cluster.sh @@ -108,28 +108,6 @@ function check_and_track_k8s_ready_before_helm() { [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function } -#Install Helm v3 -#Helm releases can be found here: https://github.com/helm/helm/releases -function install_helm() { - [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function - HELM_VERSION="v3.11.3" - if ! [[ "$(helm version --short 2>/dev/null)" =~ ^v3.* ]]; then - # Helm is not installed. Install helm - 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-${HELM_VERSION}.tar.gz - else - echo "Helm3 is already installed. Skipping installation..." - fi - helm version || FATAL_TRACK k8scluster "Could not obtain helm version. Maybe helm client was not installed" - helm repo add stable https://charts.helm.sh/stable || FATAL_TRACK k8scluster "Helm repo stable could not be added" - helm repo update || FATAL_TRACK k8scluster "Helm repo stable could not be updated" - [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function -} - function install_k8s_storageclass() { [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function # Openebs versions can be found here: https://github.com/openebs/openebs/releases -- 2.25.1