From d407c62e5fbdc6acc0c646f854a5681a89721454 Mon Sep 17 00:00:00 2001 From: Ciprian Hacman Date: Mon, 10 May 2021 17:02:41 +0300 Subject: [PATCH] Always install the latest plugin versions for Terraform tests --- hack/verify-terraform.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/verify-terraform.sh b/hack/verify-terraform.sh index 4a2b05d1a3..3b8fc7aef0 100755 --- a/hack/verify-terraform.sh +++ b/hack/verify-terraform.sh @@ -30,7 +30,7 @@ while IFS= read -r -d '' -u 3 test_dir; do [ -f "${test_dir}/kubernetes.tf" ] || [ -f "${test_dir}/kubernetes.tf.json" ] || continue echo -e "${test_dir}\n" - docker run --rm -e "TF_PLUGIN_CACHE_DIR=${PROVIDER_CACHE}" -v "${PROVIDER_CACHE}:${PROVIDER_CACHE}" -v "${test_dir}":"${test_dir}" -w "${test_dir}" --entrypoint=sh hashicorp/terraform:${TF_TAG} -c '/bin/terraform init >/dev/null && /bin/terraform validate' || RC=$? + docker run --rm -e "TF_PLUGIN_CACHE_DIR=${PROVIDER_CACHE}" -v "${PROVIDER_CACHE}:${PROVIDER_CACHE}" -v "${test_dir}":"${test_dir}" -w "${test_dir}" --entrypoint=sh hashicorp/terraform:${TF_TAG} -c '/bin/terraform init -upgrade >/dev/null && /bin/terraform validate' || RC=$? done 3< <(find "${KOPS_ROOT}/tests/integration/update_cluster" -maxdepth 1 -type d -print0) if [ $RC != 0 ]; then