[ -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