From 240463f0ac80774ecbe04176875bb37f5fdb50c7 Mon Sep 17 00:00:00 2001 From: Arief Rahmansyah Date: Thu, 7 Sep 2023 17:56:51 +0700 Subject: [PATCH] Only set INGRESS_HOST if it's not set yet --- scripts/e2e/setup-cluster.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/e2e/setup-cluster.sh b/scripts/e2e/setup-cluster.sh index d7daf749d..279bcbbbb 100755 --- a/scripts/e2e/setup-cluster.sh +++ b/scripts/e2e/setup-cluster.sh @@ -79,7 +79,9 @@ install_istio() { set_ingress_host() { echo "::group::Set Ingress Host" - export INGRESS_HOST="$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}').nip.io" + if [[ -z "${INGRESS_HOST}" ]]; then + export INGRESS_HOST="$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}').nip.io" + fi echo "INGRESS_HOST=${INGRESS_HOST}" echo "::endgroup::" }