From 9996d4b028f3845071850def75f2b534e4d2b190 Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Fri, 16 Apr 2021 15:38:15 +0000 Subject: [PATCH] chore: use REGISTRY_MIRROR_FLAGS if defined REGISTRY_MIRROR_FLAGS can be already defined in the environment with .env or .envrc file. Use it for easier and faster local e2e tests. Signed-off-by: Alexey Palazhchenko --- hack/test/e2e.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/test/e2e.sh b/hack/test/e2e.sh index 6f267e6506..2ff4f88907 100755 --- a/hack/test/e2e.sh +++ b/hack/test/e2e.sh @@ -225,6 +225,7 @@ function build_registry_mirrors { REGISTRY_MIRROR_FLAGS="${REGISTRY_MIRROR_FLAGS} --registry-mirror ${registry}=http://${addr}:5000" done else - REGISTRY_MIRROR_FLAGS= + # use the value from the environment, if present + REGISTRY_MIRROR_FLAGS=${REGISTRY_MIRROR_FLAGS:-} fi }