From 4498dc41a4caa186a11ca493c37fed119b416c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Fri, 28 Jul 2023 14:51:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Make=20TF=5FVAR=5Fcluster=5Fname?= =?UTF-8?q?=20mandatory=20in=20testing=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prepare-labs/test-all-one-kubernetes.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/prepare-labs/test-all-one-kubernetes.sh b/prepare-labs/test-all-one-kubernetes.sh index 9194a631..922171d2 100755 --- a/prepare-labs/test-all-one-kubernetes.sh +++ b/prepare-labs/test-all-one-kubernetes.sh @@ -4,6 +4,11 @@ # another set of clusters while a first one is still running) # you should set the TF_VAR_cluster_name environment variable. +if ! [ "$TF_VAR_cluster_name" ]; then + echo "Please set TF_VAR_cluster_name. Thanks." + exit 1 +fi + cd terraform/one-kubernetes case "$1" in