Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #62 from nitinpatil1992/master
Browse files Browse the repository at this point in the history
fix: update helm init with stable
  • Loading branch information
stefanprodan authored Feb 1, 2021
2 parents 714665e + 17d0fc0 commit 4aa6339
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ curl -sL "https://storage.googleapis.com/kubernetes-release/release/$(curl -s ht

curl -sL https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64 -o /usr/local/bin/yq && chmod +x /usr/local/bin/yq

curl -sSL https://get.helm.sh/helm-v2.16.3-linux-amd64.tar.gz | tar xz && mv linux-amd64/helm /bin/helm && rm -rf linux-amd64
helm init --client-only --kubeconfig="${HOME}/.kube/kubeconfig"
curl -sSL https://get.helm.sh/helm-v2.17.0-linux-amd64.tar.gz | tar xz && mv linux-amd64/helm /bin/helm && rm -rf linux-amd64
helm init --stable-repo-url https://charts.helm.sh/stable --client-only --kubeconfig="${HOME}/.kube/kubeconfig"

curl -sSL https://get.helm.sh/helm-v3.1.1-linux-amd64.tar.gz | tar xz && mv linux-amd64/helm /bin/helmv3 && rm -rf linux-amd64
helmv3 version
4 changes: 4 additions & 0 deletions src/hrval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ function download {

if [[ "$CHART_REPO_ALREADY_ADDED" = false ]]; then
if [[ "${HELM_VER}" == "v3" ]]; then
helmv3 repo rm stable
helmv3 repo add stable https://charts.helm.sh/stable
helmv3 repo add "${CHART_REPO_MD5}" "${CHART_REPO}"
helmv3 repo update
else
helm repo rm stable
helm repo add stable https://charts.helm.sh/stable
helm repo add "${CHART_REPO_MD5}" "${CHART_REPO}"
helm repo update
fi
Expand Down

0 comments on commit 4aa6339

Please sign in to comment.