Revision 878beba56c6bcf9996fb8026abb743d1263a3023 authored by Marga Manterola on 08 September 2023, 13:07:23 UTC, committed by Michi Mutsuzaki on 09 September 2023, 03:08:12 UTC
Signed-off-by: Marga Manterola <marga@isovalent.com>
1 parent 8209d85
Raw File
install-helm.sh
#!/bin/bash

# Copyright 2017-2020 Authors of Cilium
# SPDX-License-Identifier: Apache-2.0

set -o xtrace
set -o errexit
set -o pipefail
set -o nounset

HELM_VERSION="3.7.0"

TARGETPLATFORM="${1}"

target="$(echo "${TARGETPLATFORM}" | tr / -)"

curl --fail --show-error --silent --location \
     "https://get.helm.sh/helm-v${HELM_VERSION}-${target}.tar.gz" \
   --output /tmp/helm.tgz

tar -xf /tmp/helm.tgz -C /tmp

ls -laR /tmp

mv "/tmp/${target}/helm" /usr/local/bin

rm -rf /tmp/helm.tgz "/tmp/${target}"
back to top