Skip to content

Commit 3359577

Browse files
committed
set default value of KUBE_MASTER_URL to empty
1 parent 9790262 commit 3359577

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hack/ginkgo-e2e.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ else
7474
prepare-e2e
7575

7676
detect-master >/dev/null
77-
KUBE_MASTER_URL="${KUBE_MASTER_URL:-https://${KUBE_MASTER_IP:-}}"
77+
78+
KUBE_MASTER_URL="${KUBE_MASTER_URL:-}"
79+
if [[ -z "${KUBE_MASTER_URL:-}" && -n "${KUBE_MASTER_IP:-}" ]]; then
80+
KUBE_MASTER_URL="https://${KUBE_MASTER_IP}"
81+
fi
7882

7983
auth_config=(
8084
"--kubeconfig=${KUBECONFIG:-$DEFAULT_KUBECONFIG}"

0 commit comments

Comments
 (0)