From 064932e0bae64fe94de2f86bf3c41be18fbab1d6 Mon Sep 17 00:00:00 2001 From: Simon Aronsson Date: Fri, 26 Feb 2021 15:02:22 +0100 Subject: [PATCH] fix go module name --- README.md | 4 ++-- chaos.go | 2 +- examples/test.js | 2 +- go.mod | 2 +- internal/k8s/k8s.go | 4 ++-- pkg/k8s/client/client.go | 2 +- pkg/k8s/config/config_test.go | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 849c6e1..cfe2aeb 100644 --- a/README.md +++ b/README.md @@ -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.` @@ -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-chaos@v0.0.1. source=console +INFO[0000] Running simskij/xk6-chaos@v0.0.1. 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 diff --git a/chaos.go b/chaos.go index 42e60e2..e58be00 100644 --- a/chaos.go +++ b/chaos.go @@ -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" diff --git a/examples/test.js b/examples/test.js index 7500f65..822e077 100644 --- a/examples/test.js +++ b/examples/test.js @@ -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.` diff --git a/go.mod b/go.mod index 1d4f643..0a892a1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/simskij/k6-extension-chaos +module github.com/simskij/xk6-chaos go 1.15 diff --git a/internal/k8s/k8s.go b/internal/k8s/k8s.go index 4ea3ff0..aaac682 100644 --- a/internal/k8s/k8s.go +++ b/internal/k8s/k8s.go @@ -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() { diff --git a/pkg/k8s/client/client.go b/pkg/k8s/client/client.go index d7a9ecd..ce97fe3 100644 --- a/pkg/k8s/client/client.go +++ b/pkg/k8s/client/client.go @@ -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" ) diff --git a/pkg/k8s/config/config_test.go b/pkg/k8s/config/config_test.go index e0a2b2e..26ac1ac 100644 --- a/pkg/k8s/config/config_test.go +++ b/pkg/k8s/config/config_test.go @@ -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" )