mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Add detect-master to local provider to get e2e working
go run hack/e2e.go -v -test --check_node_count=false --test_args="--ginkgo.focus=\[Feature:Volumes\]"
This commit is contained in:
parent
eecbfb1a28
commit
71a9487f70
@ -18,3 +18,10 @@ function prepare-e2e() {
|
|||||||
echo "Local doesn't need special preparations for e2e tests" 1>&2
|
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)"
|
||||||
|
}
|
||||||
|
@ -397,13 +397,13 @@ at a custom host directly:
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
export KUBECONFIG=/path/to/kubeconfig
|
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:
|
To control the tests that are run:
|
||||||
|
|
||||||
```sh
|
```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
|
## Kinds of tests
|
||||||
|
Loading…
Reference in New Issue
Block a user