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

Commit 71245c7

Browse files
authored
Merge pull request #1 from MStoykov/updateK6PathAndReadme
Update k6 path
2 parents 064932e + 6b4ec3a commit 71245c7

File tree

6 files changed

+464
-132
lines changed

6 files changed

+464
-132
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# xk6-chaos
1515
A k6 extension for testing for the unknown unknowns.
16-
Built for [k6](https://github.com/loadimpact/k6) using [xk6](https://github.com/k6io/xk6).
16+
Built for [k6](https://go.k6.io/k6) using [xk6](https://github.com/k6io/xk6).
1717

1818
</div>
1919

@@ -28,13 +28,12 @@ Then:
2828

2929
1. Download `xk6`:
3030
```bash
31-
$ go get -u github.com/k6io/xk6
31+
$ go install github.com/k6io/xk6/cmd/xk6@latest
3232
```
3333

3434
2. Build the binary:
3535
```bash
36-
$ xk6 build v0.29.0 \
37-
--with github.com/simskij/xk6-chaos
36+
$ xk6 build --with github.com/simskij/xk6-chaos@latest
3837
```
3938

4039
## Example

chaos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package chaos
22

33
import (
4-
"github.com/loadimpact/k6/js/modules"
4+
"go.k6.io/k6/js/modules"
55
_ "github.com/simskij/xk6-chaos/internal/k8s" // Register the k8s module as well
66
)
77

go.mod

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,12 @@ module github.com/simskij/xk6-chaos
33
go 1.15
44

55
require (
6-
github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153 // indirect
7-
github.com/evanphx/json-patch v4.9.0+incompatible // indirect
8-
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7 // indirect
9-
github.com/google/gofuzz v1.1.0 // indirect
106
github.com/googleapis/gnostic v0.5.3 // indirect
117
github.com/imdario/mergo v0.3.11 // indirect
12-
github.com/json-iterator/go v1.1.10 // indirect
13-
github.com/loadimpact/k6 v0.29.0
148
github.com/onsi/ginkgo v1.14.0
159
github.com/onsi/gomega v1.10.1
16-
github.com/pkg/errors v0.9.1 // indirect
17-
golang.org/x/net v0.0.0-20200707034311-ab3426394381 // indirect
18-
golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4 // indirect
19-
k8s.io/api v0.17.0
20-
k8s.io/apimachinery v0.17.0
21-
k8s.io/client-go v0.17.0
22-
k8s.io/klog v1.0.0 // indirect
23-
k8s.io/klog/v2 v2.2.0 // indirect
24-
k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6 // indirect
25-
k8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect
26-
sigs.k8s.io/yaml v1.2.0 // indirect
10+
go.k6.io/k6 v0.32.0
11+
k8s.io/api v0.21.0
12+
k8s.io/apimachinery v0.21.0
13+
k8s.io/client-go v0.21.0
2714
)

0 commit comments

Comments
 (0)