Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 2227fcf

Browse files
authored
Use grafana path, update go version and fix to work with k6 v0.38.0
1 parent 16267d6 commit 2227fcf

File tree

9 files changed

+194
-303
lines changed

9 files changed

+194
-303
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
>
33
> As this is a proof of concept, it won't be supported by the k6 team.
44
> It may also break in the future as xk6 evolves. USE AT YOUR OWN RISK!
5-
> Any issues with the tool should be raised [here](https://github.com/simskij/xk6-chaos/issues).
5+
> Any issues with the tool should be raised [here](https://github.com/grafana/xk6-chaos/issues).
66
77
</br>
88
</br>
@@ -33,7 +33,7 @@ Then:
3333

3434
2. Build the binary:
3535
```bash
36-
$ xk6 build --with github.com/simskij/xk6-chaos@latest
36+
$ xk6 build --with github.com/grafana/xk6-chaos@latest
3737
```
3838

3939
## Example
@@ -43,7 +43,7 @@ import chaos from 'k6/x/chaos';
4343
import { Pods } from 'k6/x/chaos/k8s';
4444

4545
export default function () {
46-
console.log(`Running simskij/xk6-chaos@${chaos.version}.`);
46+
console.log(`Running grafana/xk6-chaos@${chaos.version}.`);
4747
const p = new Pods();
4848
console.log(
4949
`There are currently ${p.list().length} pods in the default namespace.`
@@ -79,7 +79,7 @@ $ ./k6 run script.js
7979
scenarios: (100.00%) 1 scenario, 1 max VUs, 10m30s max duration (incl. graceful stop):
8080
* default: 1 iterations for each of 1 VUs (maxDuration: 10m0s, gracefulStop: 30s)
8181

82-
INFO[0000] Running simskij/xk6-chaos@v0.0.1. source=console
82+
INFO[0000] Running grafana/xk6-chaos@v0.0.1. source=console
8383
INFO[0000] There are currently 33 pods in the default namespace. source=console
8484
INFO[0000] Killing pod chaos-webserver-54bd848884-ds2g9 source=console
8585
INFO[0000] There are now 32 pods in the default namespace. source=console

chaos.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package chaos
33
import (
44
"fmt"
55

6-
_ "github.com/simskij/xk6-chaos/internal/experiments" // Register the experiments module as well
7-
_ "github.com/simskij/xk6-chaos/internal/k8s" // Register the k8s module as well
6+
_ "github.com/grafana/xk6-chaos/internal/experiments" // Register the experiments module as well
7+
_ "github.com/grafana/xk6-chaos/internal/k8s" // Register the k8s module as well
88
"go.k6.io/k6/js/modules"
99
)
1010

go.mod

Lines changed: 49 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,58 @@
1-
module github.com/simskij/xk6-chaos
1+
module github.com/grafana/xk6-chaos
22

3-
go 1.15
3+
go 1.17
44

55
require (
6-
github.com/googleapis/gnostic v0.5.3 // indirect
7-
github.com/imdario/mergo v0.3.11 // indirect
8-
github.com/k6io/xk6 v0.4.1 // indirect
96
github.com/onsi/ginkgo v1.14.0
107
github.com/onsi/gomega v1.10.1
11-
go.k6.io/k6 v0.32.0
12-
go.uber.org/multierr v1.1.0
8+
go.k6.io/k6 v0.38.1
139
k8s.io/api v0.21.0
1410
k8s.io/apimachinery v0.21.0
1511
k8s.io/client-go v0.21.0
1612
)
13+
14+
require (
15+
github.com/davecgh/go-spew v1.1.1 // indirect
16+
github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91 // indirect
17+
github.com/dop251/goja v0.0.0-20220405120441-9037c2b61cbf // indirect
18+
github.com/fatih/color v1.13.0 // indirect
19+
github.com/fsnotify/fsnotify v1.4.9 // indirect
20+
github.com/go-logr/logr v0.4.0 // indirect
21+
github.com/go-sourcemap/sourcemap v2.1.4-0.20211119122758-180fcef48034+incompatible // indirect
22+
github.com/gogo/protobuf v1.3.2 // indirect
23+
github.com/golang/protobuf v1.5.2 // indirect
24+
github.com/google/go-cmp v0.5.5 // indirect
25+
github.com/google/gofuzz v1.1.0 // indirect
26+
github.com/googleapis/gnostic v0.5.3 // indirect
27+
github.com/imdario/mergo v0.3.11 // indirect
28+
github.com/json-iterator/go v1.1.10 // indirect
29+
github.com/mailru/easyjson v0.7.7 // indirect
30+
github.com/mattn/go-colorable v0.1.12 // indirect
31+
github.com/mattn/go-isatty v0.0.14 // indirect
32+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
33+
github.com/modern-go/reflect2 v1.0.1 // indirect
34+
github.com/nxadm/tail v1.4.4 // indirect
35+
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
36+
github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e // indirect
37+
github.com/sirupsen/logrus v1.8.1 // indirect
38+
github.com/spf13/afero v1.2.2 // indirect
39+
github.com/spf13/pflag v1.0.5 // indirect
40+
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
41+
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
42+
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
43+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
44+
golang.org/x/text v0.3.7 // indirect
45+
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 // indirect
46+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
47+
google.golang.org/appengine v1.6.5 // indirect
48+
google.golang.org/protobuf v1.26.0 // indirect
49+
gopkg.in/guregu/null.v3 v3.3.0 // indirect
50+
gopkg.in/inf.v0 v0.9.1 // indirect
51+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
52+
gopkg.in/yaml.v2 v2.4.0 // indirect
53+
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
54+
k8s.io/klog/v2 v2.8.0 // indirect
55+
k8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect
56+
sigs.k8s.io/structured-merge-diff/v4 v4.1.0 // indirect
57+
sigs.k8s.io/yaml v1.2.0 // indirect
58+
)

0 commit comments

Comments
 (0)