From c5dee09dd2d06dd396c646a1557ef5baf31513e3 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Fri, 26 Jul 2024 19:58:35 -0400 Subject: [PATCH] Disable `kind-preload.sh` by default --- README.md | 7 +++++++ kind.sh | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b217d9233..89fa3e5b3 100644 --- a/README.md +++ b/README.md @@ -1020,6 +1020,13 @@ kubectl tunnel expose jenkins 8000:8000 8001:8001 & mvn test -Djenkins.host.address=jenkins.default -Dport=8000 -DslaveAgentPort=8001 -Dtest=KubernetesPipelineTest#runInPod ``` +Alternately, you can run everything like in CI: + +```bash +export KIND_PRELOAD=true # optionally +./kind.sh -Dtest=KubernetesPipelineTest#runInPod +``` + You can also run interactively after setting up the tunnel: ```bash diff --git a/kind.sh b/kind.sh index 129076566..88da71581 100755 --- a/kind.sh +++ b/kind.sh @@ -36,7 +36,10 @@ function cleanup() { trap cleanup EXIT kubectl cluster-info -./kind-preload.sh +if ${KIND_PRELOAD:-false} +then + ./kind-preload.sh +fi ktunnel expose jenkins 8000:8000 8001:8001 & ktunnel_pid=$!