This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use grafana path, update go version and fix to work with k6 v0.38.0
- Loading branch information
Showing
9 changed files
with
194 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
> | ||
> As this is a proof of concept, it won't be supported by the k6 team. | ||
> It may also break in the future as xk6 evolves. USE AT YOUR OWN RISK! | ||
> Any issues with the tool should be raised [here](https://github.com/simskij/xk6-chaos/issues). | ||
> Any issues with the tool should be raised [here](https://github.com/grafana/xk6-chaos/issues). | ||
</br> | ||
</br> | ||
|
@@ -33,7 +33,7 @@ Then: | |
|
||
2. Build the binary: | ||
```bash | ||
$ xk6 build --with github.com/simskij/xk6-chaos@latest | ||
$ xk6 build --with github.com/grafana/xk6-chaos@latest | ||
``` | ||
|
||
## Example | ||
|
@@ -43,7 +43,7 @@ import chaos from 'k6/x/chaos'; | |
import { Pods } from 'k6/x/chaos/k8s'; | ||
export default function () { | ||
console.log(`Running simskij/xk6-chaos@${chaos.version}.`); | ||
console.log(`Running grafana/xk6-chaos@${chaos.version}.`); | ||
const p = new Pods(); | ||
console.log( | ||
`There are currently ${p.list().length} pods in the default namespace.` | ||
|
@@ -79,7 +79,7 @@ $ ./k6 run script.js | |
scenarios: (100.00%) 1 scenario, 1 max VUs, 10m30s max duration (incl. graceful stop): | ||
* default: 1 iterations for each of 1 VUs (maxDuration: 10m0s, gracefulStop: 30s) | ||
INFO[0000] Running simskij/[email protected]. source=console | ||
INFO[0000] Running grafana/[email protected]. source=console | ||
INFO[0000] There are currently 33 pods in the default namespace. source=console | ||
INFO[0000] Killing pod chaos-webserver-54bd848884-ds2g9 source=console | ||
INFO[0000] There are now 32 pods in the default namespace. source=console | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,58 @@ | ||
module github.com/simskij/xk6-chaos | ||
module github.com/grafana/xk6-chaos | ||
|
||
go 1.15 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/googleapis/gnostic v0.5.3 // indirect | ||
github.com/imdario/mergo v0.3.11 // indirect | ||
github.com/k6io/xk6 v0.4.1 // indirect | ||
github.com/onsi/ginkgo v1.14.0 | ||
github.com/onsi/gomega v1.10.1 | ||
go.k6.io/k6 v0.32.0 | ||
go.uber.org/multierr v1.1.0 | ||
go.k6.io/k6 v0.38.1 | ||
k8s.io/api v0.21.0 | ||
k8s.io/apimachinery v0.21.0 | ||
k8s.io/client-go v0.21.0 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91 // indirect | ||
github.com/dop251/goja v0.0.0-20220405120441-9037c2b61cbf // indirect | ||
github.com/fatih/color v1.13.0 // indirect | ||
github.com/fsnotify/fsnotify v1.4.9 // indirect | ||
github.com/go-logr/logr v0.4.0 // indirect | ||
github.com/go-sourcemap/sourcemap v2.1.4-0.20211119122758-180fcef48034+incompatible // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/google/go-cmp v0.5.5 // indirect | ||
github.com/google/gofuzz v1.1.0 // indirect | ||
github.com/googleapis/gnostic v0.5.3 // indirect | ||
github.com/imdario/mergo v0.3.11 // indirect | ||
github.com/json-iterator/go v1.1.10 // indirect | ||
github.com/mailru/easyjson v0.7.7 // indirect | ||
github.com/mattn/go-colorable v0.1.12 // indirect | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.1 // indirect | ||
github.com/nxadm/tail v1.4.4 // indirect | ||
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect | ||
github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e // indirect | ||
github.com/sirupsen/logrus v1.8.1 // indirect | ||
github.com/spf13/afero v1.2.2 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect | ||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect | ||
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect | ||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 // indirect | ||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect | ||
google.golang.org/appengine v1.6.5 // indirect | ||
google.golang.org/protobuf v1.26.0 // indirect | ||
gopkg.in/guregu/null.v3 v3.3.0 // indirect | ||
gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect | ||
k8s.io/klog/v2 v2.8.0 // indirect | ||
k8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect | ||
sigs.k8s.io/structured-merge-diff/v4 v4.1.0 // indirect | ||
sigs.k8s.io/yaml v1.2.0 // indirect | ||
) |
Oops, something went wrong.