mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 04:03:20 +00:00
Merge pull request #28469 from asalkeld/local-e2e
Automatic merge from submit-queue Add detect-master to local provider to get e2e working Make it possible to run some e2e tests using the local provider (./hack/local-up-cluster.sh) This will now work for tests that don't need more than one node: export KUBERNETES_PROVIDER=local go run hack/e2e.go -v -test --check_node_count=false --check_version_skew=false --test_args="--ginkgo.focus=Cadvisor" Note: without this commit, the port and ip address are wrong and require the --host option (which is inconsistent with the other providers).
This commit is contained in:
@@ -395,13 +395,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"
|
||||
```
|
||||
|
||||
### Version-skewed and upgrade testing
|
||||
|
Reference in New Issue
Block a user