calico: Align IPv4 pool CIDR with k8s_master
[iec.git] / scripts / helm.sh
1 #!/bin/bash -ex
2
3 VERSION='v2.12.3'
4 if [ "$(uname -m)" == 'aarch64' ]; then
5   FLAVOR='linux-arm64'
6 else
7   FLAVOR='linux-amd64'
8 fi
9
10 URI_ROOT='https://storage.googleapis.com/kubernetes-helm'
11 TGZ_NAME="helm-${VERSION}-${FLAVOR}.tar.gz"
12
13 if [ ! -e /usr/bin/helm ] || [ ! -e /usr/bin/tiller ]; then
14   wget -O "/tmp/${TGZ_NAME}" "${URI_ROOT}/${TGZ_NAME}"
15   sudo tar xpPf "/tmp/${TGZ_NAME}" --overwrite \
16     --transform "s|${FLAVOR}|/usr/bin|" "${FLAVOR}/"{helm,tiller}
17   rm -f "/tmp/${TGZ_NAME}"
18 fi