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=$!