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

Commit 064932e

Browse files
committed
fix go module name
1 parent 475838a commit 064932e

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import chaos from 'k6/x/chaos';
4444
import { Pods } from 'k6/x/chaos/k8s';
4545

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

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

chaos.go

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

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

88
const version = "v0.0.1"

examples/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import chaos from 'k6/x/chaos';
22
import { Pods } from 'k6/x/chaos/k8s';
33

44
export default function () {
5-
console.log(`Running simskij/k6-extension-chaos@${chaos.version}.`);
5+
console.log(`Running simskij/xk6-chaos@${chaos.version}.`);
66
const p = new Pods();
77
console.log(
88
`There are currently ${p.list().length} pods in the default namespace.`

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/simskij/k6-extension-chaos
1+
module github.com/simskij/xk6-chaos
22

33
go 1.15
44

internal/k8s/k8s.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55

66
"github.com/loadimpact/k6/js/common"
77
"github.com/loadimpact/k6/js/modules"
8-
"github.com/simskij/k6-extension-chaos/internal/k8s/pods"
9-
"github.com/simskij/k6-extension-chaos/pkg/k8s/client"
8+
"github.com/simskij/xk6-chaos/internal/k8s/pods"
9+
"github.com/simskij/xk6-chaos/pkg/k8s/client"
1010
)
1111

1212
func init() {

pkg/k8s/client/client.go

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

33
import (
4-
"github.com/simskij/k6-extension-chaos/pkg/k8s/config"
4+
"github.com/simskij/xk6-chaos/pkg/k8s/config"
55
"k8s.io/client-go/kubernetes"
66
)
77

pkg/k8s/config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
. "github.com/onsi/ginkgo"
99
. "github.com/onsi/gomega"
10-
"github.com/simskij/k6-extension-chaos/pkg/k8s/config"
10+
"github.com/simskij/xk6-chaos/pkg/k8s/config"
1111
"k8s.io/client-go/util/homedir"
1212
)
1313

0 commit comments

Comments
 (0)