From 1a711f8c2cc33f807bfd4576bc3372a43171a50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Wed, 10 May 2023 19:12:55 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Add=20kubent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kube No Trouble (kubent) is a simple tool to check whether you're using any of these API versions in your cluster and therefore should upgrade your workloads first, before upgrading your Kubernetes cluster. --- prepare-labs/lib/commands.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/prepare-labs/lib/commands.sh b/prepare-labs/lib/commands.sh index 4d0b800a..78309bf5 100644 --- a/prepare-labs/lib/commands.sh +++ b/prepare-labs/lib/commands.sh @@ -782,6 +782,15 @@ EOF velero completion bash | sudo tee /etc/bash_completion.d/velero velero version --client-only fi" + + ##VERSION## https://github.com/doitintl/kube-no-trouble/releases + KUBENT_VERSION=0.7.0 + pssh " + if [ ! -x /usr/local/bin/kubent ]; then + curl -fsSL https://github.com/doitintl/kube-no-trouble/releases/download/${KUBENT_VERSION}/kubent-${KUBENT_VERSION}-linux-$ARCH.tar.gz | + sudo tar -zxvf- -C /usr/local/bin kubent + kubent --version + fi" } _cmd kubereset "Wipe out Kubernetes configuration on all nodes"