-
Notifications
You must be signed in to change notification settings - Fork 25
/
provision-helm.sh
35 lines (28 loc) · 945 Bytes
/
provision-helm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
set -euo pipefail
#
# deploy helm.
helm_version="${1:-v3.15.3}"; shift || true
# install dependencies.
apt-get install -y --no-install-recommends git-core
# install helm.
# see https://helm.sh/docs/intro/install/
echo "installing helm $helm_version client..."
case `uname -m` in
x86_64)
wget -qO- "https://get.helm.sh/helm-$helm_version-linux-amd64.tar.gz" | tar xzf - --strip-components=1 linux-amd64/helm
;;
aarch64)
wget -qO- "https://get.helm.sh/helm-$helm_version-linux-arm64.tar.gz" | tar xzf - --strip-components=1 linux-arm64/helm
;;
esac
install helm /usr/local/bin
rm helm
# install the bash completion script.
helm completion bash >/usr/share/bash-completion/completions/helm
# install the helm-diff plugin.
# NB this is especially useful for helmfile.
helm plugin install https://github.com/databus23/helm-diff
# kick the tires.
printf "#\n# helm version\n#\n"
helm version