Skip to content

Commit

Permalink
refactor: change organisation from kudobuilder to stackabletech
Browse files Browse the repository at this point in the history
  • Loading branch information
dervoeti committed Nov 6, 2024
1 parent 88967dd commit e1aeb49
Show file tree
Hide file tree
Showing 29 changed files with 105 additions and 51 deletions.
6 changes: 6 additions & 0 deletions cmd/kubectl-kuttl/example-tests/testcase-1/00-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-deployment
status:
replicas: 3
21 changes: 21 additions & 0 deletions cmd/kubectl-kuttl/example-tests/testcase-1/00-install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
2 changes: 1 addition & 1 deletion cmd/kubectl-kuttl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package main
import (
"os"

"github.com/kudobuilder/kuttl/pkg/kuttlctl/cmd"
"github.com/stackabletech/kuttl/pkg/kuttlctl/cmd"
)

func main() {
Expand Down
6 changes: 6 additions & 0 deletions cmd/kubectl-kuttl/testcase-2/00-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-deployment
status:
readyReplicas: 3
21 changes: 21 additions & 0 deletions cmd/kubectl-kuttl/testcase-2/00-install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
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/kudobuilder/kuttl
module github.com/stackabletech/kuttl

go 1.22.0

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

"sigs.k8s.io/controller-runtime/pkg/client"

testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

// from a list of paths, returns an array of runtime objects
Expand Down
2 changes: 1 addition & 1 deletion pkg/http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/dustin/go-humanize"

"github.com/kudobuilder/kuttl/pkg/version"
"github.com/stackabletech/kuttl/pkg/version"
)

// Client is client used to simplified http requests for tarballs
Expand Down
2 changes: 1 addition & 1 deletion pkg/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"sigs.k8s.io/controller-runtime/pkg/client"

testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

// IsURL returns true if string is an URL
Expand Down
2 changes: 1 addition & 1 deletion pkg/kuttlctl/cmd/assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/spf13/cobra"

"github.com/kudobuilder/kuttl/pkg/test"
"github.com/stackabletech/kuttl/pkg/test"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/kuttlctl/cmd/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/spf13/cobra"

"github.com/kudobuilder/kuttl/pkg/test"
"github.com/stackabletech/kuttl/pkg/test"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions pkg/kuttlctl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cmd
import (
"github.com/spf13/cobra"

"github.com/kudobuilder/kuttl/pkg/k8s"
"github.com/kudobuilder/kuttl/pkg/version"
"github.com/stackabletech/kuttl/pkg/k8s"
"github.com/stackabletech/kuttl/pkg/version"
)

// NewKuttlCmd creates a new root command for kuttlctl
Expand Down
8 changes: 4 additions & 4 deletions pkg/kuttlctl/cmd/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"github.com/spf13/pflag"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

harness "github.com/kudobuilder/kuttl/pkg/apis/testharness/v1beta1"
"github.com/kudobuilder/kuttl/pkg/report"
"github.com/kudobuilder/kuttl/pkg/test"
testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
harness "github.com/stackabletech/kuttl/pkg/apis/testharness/v1beta1"
"github.com/stackabletech/kuttl/pkg/report"
"github.com/stackabletech/kuttl/pkg/test"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/kuttlctl/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/spf13/cobra"

"github.com/kudobuilder/kuttl/pkg/version"
"github.com/stackabletech/kuttl/pkg/version"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions pkg/test/assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"k8s.io/client-go/discovery"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/kudobuilder/kuttl/pkg/k8s"
testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
"github.com/stackabletech/kuttl/pkg/k8s"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

// Assert checks all provided assert files against a namespace. Upon assert failure, it prints the failures and returns an error
Expand Down
8 changes: 4 additions & 4 deletions pkg/test/case.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"k8s.io/client-go/discovery"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/kudobuilder/kuttl/pkg/apis/testharness/v1beta1"
"github.com/kudobuilder/kuttl/pkg/k8s"
"github.com/kudobuilder/kuttl/pkg/report"
testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
"github.com/stackabletech/kuttl/pkg/apis/testharness/v1beta1"
"github.com/stackabletech/kuttl/pkg/k8s"
"github.com/stackabletech/kuttl/pkg/report"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

// testStepRegex contains one capturing group to determine the index of a step file.
Expand Down
4 changes: 2 additions & 2 deletions pkg/test/case_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"k8s.io/client-go/discovery"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/kudobuilder/kuttl/pkg/report"
testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
"github.com/stackabletech/kuttl/pkg/report"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

// Create two test environments, ensure that the second environment is used when
Expand Down
4 changes: 2 additions & 2 deletions pkg/test/case_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"k8s.io/apimachinery/pkg/labels"
"sigs.k8s.io/controller-runtime/pkg/client"

harness "github.com/kudobuilder/kuttl/pkg/apis/testharness/v1beta1"
testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
harness "github.com/stackabletech/kuttl/pkg/apis/testharness/v1beta1"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

// Verify the test state as loaded from disk.
Expand Down
12 changes: 6 additions & 6 deletions pkg/test/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ import (
"sigs.k8s.io/controller-runtime/pkg/envtest"
kindConfig "sigs.k8s.io/kind/pkg/apis/config/v1alpha4"

harness "github.com/kudobuilder/kuttl/pkg/apis/testharness/v1beta1"
"github.com/kudobuilder/kuttl/pkg/file"
"github.com/kudobuilder/kuttl/pkg/http"
"github.com/kudobuilder/kuttl/pkg/k8s"
"github.com/kudobuilder/kuttl/pkg/report"
testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
harness "github.com/stackabletech/kuttl/pkg/apis/testharness/v1beta1"
"github.com/stackabletech/kuttl/pkg/file"
"github.com/stackabletech/kuttl/pkg/http"
"github.com/stackabletech/kuttl/pkg/k8s"
"github.com/stackabletech/kuttl/pkg/report"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

// Harness loads and runs tests based on the configuration provided.
Expand Down
4 changes: 2 additions & 2 deletions pkg/test/harness_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/stretchr/testify/assert"

harness "github.com/kudobuilder/kuttl/pkg/apis/testharness/v1beta1"
testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
harness "github.com/stackabletech/kuttl/pkg/apis/testharness/v1beta1"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

func TestHarnessRunIntegration(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sigs.k8s.io/kind/pkg/cluster/nodes"
"sigs.k8s.io/kind/pkg/cluster/nodeutils"

testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

// kind provides a thin abstraction layer for a KIND cluster.
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/kind_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"sigs.k8s.io/kind/pkg/apis/config/v1alpha4"
"sigs.k8s.io/kind/pkg/cluster/nodes"

testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/kind_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/spf13/pflag"
"sigs.k8s.io/kind/pkg/log"

testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

type level int32
Expand Down
10 changes: 5 additions & 5 deletions pkg/test/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import (
"k8s.io/client-go/discovery"
"sigs.k8s.io/controller-runtime/pkg/client"

harness "github.com/kudobuilder/kuttl/pkg/apis/testharness/v1beta1"
"github.com/kudobuilder/kuttl/pkg/env"
kfile "github.com/kudobuilder/kuttl/pkg/file"
"github.com/kudobuilder/kuttl/pkg/http"
testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
harness "github.com/stackabletech/kuttl/pkg/apis/testharness/v1beta1"
"github.com/stackabletech/kuttl/pkg/env"
kfile "github.com/stackabletech/kuttl/pkg/file"
"github.com/stackabletech/kuttl/pkg/http"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

// fileNameRegex contains two capturing groups to determine whether a file has special
Expand Down
6 changes: 3 additions & 3 deletions pkg/test/step_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"k8s.io/client-go/discovery"
"sigs.k8s.io/controller-runtime/pkg/client"

harness "github.com/kudobuilder/kuttl/pkg/apis/testharness/v1beta1"
testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
harness "github.com/stackabletech/kuttl/pkg/apis/testharness/v1beta1"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

var testenv testutils.TestEnvironment
Expand Down Expand Up @@ -400,7 +400,7 @@ func TestTwoTestStepping(t *testing.T) {
}

// intentional testing that a test failure captures the test errors and does not have a segfault
// driving by issue: https://github.com/kudobuilder/kuttl/issues/154
// driving by issue: https://github.com/stackabletech/kuttl/issues/154
func TestStepFailure(t *testing.T) {
// an assert without setup
var expected client.Object = &unstructured.Unstructured{
Expand Down
4 changes: 2 additions & 2 deletions pkg/test/step_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client/fake"

harness "github.com/kudobuilder/kuttl/pkg/apis/testharness/v1beta1"
testutils "github.com/kudobuilder/kuttl/pkg/test/utils"
harness "github.com/stackabletech/kuttl/pkg/apis/testharness/v1beta1"
testutils "github.com/stackabletech/kuttl/pkg/test/utils"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions pkg/test/utils/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
"sigs.k8s.io/controller-runtime/pkg/envtest"

"github.com/kudobuilder/kuttl/pkg/apis"
harness "github.com/kudobuilder/kuttl/pkg/apis/testharness/v1beta1"
"github.com/kudobuilder/kuttl/pkg/env"
"github.com/stackabletech/kuttl/pkg/apis"
harness "github.com/stackabletech/kuttl/pkg/apis/testharness/v1beta1"
"github.com/stackabletech/kuttl/pkg/env"
)

// ensure that we only add to the scheme once.
var schemeLock sync.Once

// TODO (kensipe): need to consider options around AlwaysAdmin https://github.com/kudobuilder/kudo/pull/1420/files#r391449597
// TODO (kensipe): need to consider options around AlwaysAdmin https://github.com/stackabletech/kudo/pull/1420/files#r391449597

// IsJSONSyntaxError returns true if the error is a JSON syntax error.
func IsJSONSyntaxError(err error) bool {
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/utils/kubernetes_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"k8s.io/apimachinery/pkg/watch"
"sigs.k8s.io/controller-runtime/pkg/client"

harness "github.com/kudobuilder/kuttl/pkg/apis/testharness/v1beta1"
harness "github.com/stackabletech/kuttl/pkg/apis/testharness/v1beta1"
)

var testenv TestEnvironment
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/utils/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

harness "github.com/kudobuilder/kuttl/pkg/apis/testharness/v1beta1"
harness "github.com/stackabletech/kuttl/pkg/apis/testharness/v1beta1"
)

func TestNamespaced(t *testing.T) {
Expand Down

0 comments on commit e1aeb49

Please sign in to comment.