mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
address comments.
This commit is contained in:
parent
1d031b7a03
commit
878b5e8a4a
@ -115,9 +115,13 @@ Pressing control-C should result in an orderly shutdown but if something goes wr
|
|||||||
go run e2e.go --down
|
go run e2e.go --down
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Flag options
|
||||||
See the flag definitions in `hack/e2e.go` for more options, such as reusing an existing cluster, here is an overview:
|
See the flag definitions in `hack/e2e.go` for more options, such as reusing an existing cluster, here is an overview:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
# Build binaries for testing
|
||||||
|
go run e2e.go --build
|
||||||
|
|
||||||
# Create a fresh cluster. Deletes a cluster first, if it exists
|
# Create a fresh cluster. Deletes a cluster first, if it exists
|
||||||
go run e2e.go --up
|
go run e2e.go --up
|
||||||
|
|
||||||
@ -127,6 +131,9 @@ go run e2e.go --isup
|
|||||||
# Push code to an existing cluster
|
# Push code to an existing cluster
|
||||||
go run e2e.go --push
|
go run e2e.go --push
|
||||||
|
|
||||||
|
# Push to an existing cluster, or bring up a cluster if it's down.
|
||||||
|
go run e2e.go --pushup
|
||||||
|
|
||||||
# Run all tests
|
# Run all tests
|
||||||
go run e2e.go --test
|
go run e2e.go --test
|
||||||
|
|
||||||
@ -134,6 +141,22 @@ go run e2e.go --test
|
|||||||
go run e2e.go --tests=...
|
go run e2e.go --tests=...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Combining flags
|
||||||
|
```sh
|
||||||
|
# Flags can be combined, and their actions will take place in this order:
|
||||||
|
# -build, -push|-up|-pushup, -test|-tests=..., -down
|
||||||
|
# e.g.:
|
||||||
|
go run e2e.go -build -pushup -test -down
|
||||||
|
|
||||||
|
# -v (verbose) can be added if you want streaming output instead of only
|
||||||
|
# seeing the output of failed commands.
|
||||||
|
|
||||||
|
# -ctl can be used to quickly call kubectl against your e2e cluster. Useful for
|
||||||
|
# cleaning up after a failed test or viewing logs.
|
||||||
|
go run e2e.go -ctl='get events'
|
||||||
|
go run e2e.go -ctl='delete pod foobar'
|
||||||
|
```
|
||||||
|
|
||||||
## Testing out flaky tests
|
## Testing out flaky tests
|
||||||
[Instructions here](docs/devel/flaky-tests.md)
|
[Instructions here](docs/devel/flaky-tests.md)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user