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

fix: update helm init with stable #62

Merged
merged 5 commits into from
Feb 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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