From ee7bd37f8366b0b47c495d0f8d4b5e450d9cf4e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Thu, 10 Jun 2021 17:25:28 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Update=20download=20URL=20?= =?UTF-8?q?for=20k9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prepare-vms/lib/commands.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/prepare-vms/lib/commands.sh b/prepare-vms/lib/commands.sh index c47b2c43..b79c2cd6 100644 --- a/prepare-vms/lib/commands.sh +++ b/prepare-vms/lib/commands.sh @@ -330,7 +330,7 @@ EOF" # Install the AWS IAM authenticator pssh " if [ ! -x /usr/local/bin/aws-iam-authenticator ]; then - ##VERSION## + ##VERSION## sudo curl -o /usr/local/bin/aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.12.7/2019-03-27/bin/linux/amd64/aws-iam-authenticator sudo chmod +x /usr/local/bin/aws-iam-authenticator fi" @@ -345,13 +345,17 @@ EOF" echo export PATH=/home/docker/.krew/bin:\\\$PATH | sudo -u docker tee -a /home/docker/.bashrc fi" - # Install k9s and popeye + # Install k9s pssh " if [ ! -x /usr/local/bin/k9s ]; then - FILENAME=k9s_\$(uname -s)_\$(uname -m).tar.gz && - curl -sSL https://github.com/derailed/k9s/releases/latest/download/\$FILENAME | + VERSION=v0.24.10 && + FILENAME=k9s_\${VERSION}_\$(uname -s)_\$(uname -m).tar.gz && + curl -sSL https://github.com/derailed/k9s/releases/download/\$VERSION/\$FILENAME | sudo tar -zxvf- -C /usr/local/bin k9s - fi + fi" + + # Install popeye + pssh " if [ ! -x /usr/local/bin/popeye ]; then FILENAME=popeye_\$(uname -s)_\$(uname -m).tar.gz && curl -sSL https://github.com/derailed/popeye/releases/latest/download/\$FILENAME |