Add a way to install Helm

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2022-06-30 15:22:16 +02:00
parent 345189653e
commit ec7e89bd00
No known key found for this signature in database
GPG key ID: 4C514D15D07186F1
5 changed files with 45 additions and 42 deletions

19
scripts/install-helm Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
set -xeou pipefail
HELM_VERSION=${1}
HELM_DOWNLOAD_SHA256=${2}
HELM_DOWNLOAD_URL="https://get.helm.sh/helm-v${HELM_VERSION}-linux-$(dpkg --print-architecture).tar.gz"
curl -fsSL "${HELM_DOWNLOAD_URL}" -o helm.tar.gz
echo "${HELM_DOWNLOAD_SHA256} helm.tar.gz" | sha256sum -c -
tar -xzf helm.tar.gz --strip-components=1
rm helm.tar.gz
chmod +x helm
mv helm /usr/bin/
helm version --client