From d3f657bdc4b8162803e8473d48ff689fd30455d5 Mon Sep 17 00:00:00 2001 From: Peter Rifel Date: Fri, 24 Sep 2021 06:20:31 -0500 Subject: [PATCH] Run verify-cloudformation in host network --- hack/verify-cloudformation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/verify-cloudformation.sh b/hack/verify-cloudformation.sh index b4e2fea76935a..76a1d27be91d2 100755 --- a/hack/verify-cloudformation.sh +++ b/hack/verify-cloudformation.sh @@ -32,7 +32,7 @@ function docker_build() { docker image inspect "${IMAGE}" >/dev/null 2>&1 || docker_build -docker run --rm -v "${KOPS_ROOT}:/${KOPS_ROOT}" -v "${KOPS_ROOT}/hack/.cfnlintrc.yaml:/root/.cfnlintrc" "${IMAGE}" "/${KOPS_ROOT}/tests/integration/update_cluster/**/cloudformation.json" +docker run --rm --network host -v "${KOPS_ROOT}:/${KOPS_ROOT}" -v "${KOPS_ROOT}/hack/.cfnlintrc.yaml:/root/.cfnlintrc" "${IMAGE}" "/${KOPS_ROOT}/tests/integration/update_cluster/**/cloudformation.json" RC=$? if [ $RC != 0 ]; then