From 0080f218172cf0b434655ccc5bccc3a4614f4498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Wed, 10 May 2023 18:45:34 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Add=20velero=20CLI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prepare-labs/lib/commands.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/prepare-labs/lib/commands.sh b/prepare-labs/lib/commands.sh index 770512ff..4d0b800a 100644 --- a/prepare-labs/lib/commands.sh +++ b/prepare-labs/lib/commands.sh @@ -772,6 +772,16 @@ EOF sudo tar -zxvf- -C /usr/local/bin kubeseal kubeseal --version fi" + + ##VERSION## https://github.com/vmware-tanzu/velero/releases + VELERO_VERSION=1.11.0 + pssh " + if [ ! -x /usr/local/bin/velero ]; then + curl -fsSL https://github.com/vmware-tanzu/velero/releases/download/v$VELERO_VERSION/velero-v$VELERO_VERSION-linux-$ARCH.tar.gz | + sudo tar --strip-components=1 --wildcards -zx -C /usr/local/bin '*/velero' + velero completion bash | sudo tee /etc/bash_completion.d/velero + velero version --client-only + fi" } _cmd kubereset "Wipe out Kubernetes configuration on all nodes"