Skip to content

Commit

Permalink
Use vanity import k8c.io/utils (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
aborilov authored Jul 31, 2020
1 parent 10ba458 commit 39ab8a8
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions cmd/sut/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (

ctrl "sigs.k8s.io/controller-runtime"

"github.com/kubermatic/utils/pkg/sut"
"github.com/kubermatic/utils/pkg/util"
"k8c.io/utils/pkg/sut"
"k8c.io/utils/pkg/util"
)

func main() {
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/kubermatic/utils
module k8c.io/utils

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion pkg/ide/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type Task struct {
LDFlags string
// go package, e.g. utils
Package string
// go module, e.g. github.com/kubermatic/utils
// go module, e.g. k8c.io/utils
Module string
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/multiowner/multi_owner.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/handler"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

"github.com/kubermatic/utils/pkg/util"
"k8c.io/utils/pkg/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/multiowner/multi_owner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/envtest"
"sigs.k8s.io/controller-runtime/pkg/manager"

"github.com/kubermatic/utils/pkg/testutil"
"k8c.io/utils/pkg/testutil"
)

func TestOwnerReverseFieldIndex(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/owner/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"

"github.com/kubermatic/utils/pkg/util"
"k8c.io/utils/pkg/util"
)

// updateFunc is called to update the current existing object (actual) to the desired state.
Expand Down
4 changes: 2 additions & 2 deletions pkg/owner/reconcile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"k8s.io/apimachinery/pkg/types"
fakeclient "sigs.k8s.io/controller-runtime/pkg/client/fake"

"github.com/kubermatic/utils/pkg/testutil"
"github.com/kubermatic/utils/pkg/util"
"k8c.io/utils/pkg/testutil"
"k8c.io/utils/pkg/util"
)

func TestOwnedObjectReconciler_Reconcile(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/sut/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
"k8s.io/client-go/tools/clientcmd/api"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/kubermatic/utils/pkg/ide"
"k8c.io/utils/pkg/ide"
)

type SUTFlags struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/testutil/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"k8s.io/client-go/util/jsonpath"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/kubermatic/utils/pkg/util"
"k8c.io/utils/pkg/util"
)

func ConditionStatusEqual(obj runtime.Object, ConditionType, ConditionStatus interface{}) error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/testutil/recording_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"k8s.io/client-go/rest"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/kubermatic/utils/pkg/util"
"k8c.io/utils/pkg/util"
)

type CleanUpStrategy string
Expand Down

0 comments on commit 39ab8a8

Please sign in to comment.