From 992f023f3c652726bbdd1c93c68b5ccfc46b2b7a Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Tue, 16 Aug 2016 16:11:02 +0200 Subject: [PATCH] Check resource leaks only when needed --- hack/jenkins/e2e-runner.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hack/jenkins/e2e-runner.sh b/hack/jenkins/e2e-runner.sh index 9758db112de18..b1b9c1653dbf5 100755 --- a/hack/jenkins/e2e-runner.sh +++ b/hack/jenkins/e2e-runner.sh @@ -361,11 +361,13 @@ e2e_go_args=( \ ) -case "${KUBERNETES_PROVIDER}" in - gce|gke) - e2e_go_args+=(--check_leaked_resources) - ;; -esac +if [[ "${FAIL_ON_GCP_RESOURCE_LEAK:-true}" == "true" ]]; then + case "${KUBERNETES_PROVIDER}" in + gce|gke) + e2e_go_args+=(--check_leaked_resources) + ;; + esac +fi if [[ "${E2E_UP,,}" == "true" ]]; then e2e_go_args+=(--up --ctl="version --match-server-version=false")