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

Commit

Permalink
fix go module name
Browse files Browse the repository at this point in the history
  • Loading branch information
simskij committed Feb 26, 2021
1 parent 475838a commit 064932e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import chaos from 'k6/x/chaos';
import { Pods } from 'k6/x/chaos/k8s';
export default function () {
console.log(`Running simskij/k6-extension-chaos@${chaos.version}.`);
console.log(`Running simskij/xk6-chaos@${chaos.version}.`);
const p = new Pods();
console.log(
`There are currently ${p.list().length} pods in the default namespace.`
Expand Down Expand Up @@ -80,7 +80,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/k6-extension[email protected]. source=console
INFO[0000] Running simskij/xk6[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
Expand Down
2 changes: 1 addition & 1 deletion chaos.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package chaos

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

const version = "v0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import chaos from 'k6/x/chaos';
import { Pods } from 'k6/x/chaos/k8s';

export default function () {
console.log(`Running simskij/k6-extension-chaos@${chaos.version}.`);
console.log(`Running simskij/xk6-chaos@${chaos.version}.`);
const p = new Pods();
console.log(
`There are currently ${p.list().length} pods in the default namespace.`
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/simskij/k6-extension-chaos
module github.com/simskij/xk6-chaos

go 1.15

Expand Down
4 changes: 2 additions & 2 deletions internal/k8s/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/loadimpact/k6/js/common"
"github.com/loadimpact/k6/js/modules"
"github.com/simskij/k6-extension-chaos/internal/k8s/pods"
"github.com/simskij/k6-extension-chaos/pkg/k8s/client"
"github.com/simskij/xk6-chaos/internal/k8s/pods"
"github.com/simskij/xk6-chaos/pkg/k8s/client"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8s/client/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package client

import (
"github.com/simskij/k6-extension-chaos/pkg/k8s/config"
"github.com/simskij/xk6-chaos/pkg/k8s/config"
"k8s.io/client-go/kubernetes"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/k8s/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/simskij/k6-extension-chaos/pkg/k8s/config"
"github.com/simskij/xk6-chaos/pkg/k8s/config"
"k8s.io/client-go/util/homedir"
)

Expand Down

0 comments on commit 064932e

Please sign in to comment.