diff --git a/cluster/local/util.sh b/cluster/local/util.sh index 8473e1a5e0b..210bfefde64 100755 --- a/cluster/local/util.sh +++ b/cluster/local/util.sh @@ -18,3 +18,10 @@ function prepare-e2e() { echo "Local doesn't need special preparations for e2e tests" 1>&2 } + +detect-master() { + KUBE_MASTER=localhost + KUBE_MASTER_IP=127.0.0.1 + KUBE_MASTER_URL="http://${KUBE_MASTER_IP}:8080" + echo "Using master: $KUBE_MASTER (external IP: $KUBE_MASTER_IP)" +} diff --git a/docs/devel/e2e-tests.md b/docs/devel/e2e-tests.md index 50356385572..a33ec83f2e5 100644 --- a/docs/devel/e2e-tests.md +++ b/docs/devel/e2e-tests.md @@ -397,13 +397,13 @@ at a custom host directly: ```sh export KUBECONFIG=/path/to/kubeconfig -go run hack/e2e.go -v --test --check_node_count=false --test_args="--host=http://127.0.0.1:8080" +go run hack/e2e.go -v --test --check_node_count=false ``` To control the tests that are run: ```sh -go run hack/e2e.go -v --test --check_node_count=false --test_args="--host=http://127.0.0.1:8080" --ginkgo.focus="Secrets" +go run hack/e2e.go -v --test --check_node_count=false --test_args="--ginkgo.focus="Secrets" ``` ## Kinds of tests