Skip to content

Commit 4e1b2a4

Browse files
committed
Update module path to v2
AI removed the v2 suffix in the import path during code porting.
1 parent b48ef94 commit 4e1b2a4

File tree

73 files changed

+189
-187
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+189
-187
lines changed

.github/workflows/test-e2e.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
go-version-file: go.mod
2121

2222
- name: Install Kind via Makefile
23-
run: make kind yj
23+
run: |
24+
make kind yj
25+
echo "$PWD/bin" >> "$GITHUB_PATH"
2426
2527
- name: Running Test e2e
2628
run: make test-e2e

api/v1beta1/rabbitmqcluster_status.go

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

33
import (
4-
"github.com/rabbitmq/cluster-operator/internal/status"
4+
"github.com/rabbitmq/cluster-operator/v2/internal/status"
55
corev1 "k8s.io/api/core/v1"
66
"k8s.io/apimachinery/pkg/runtime"
77
)

api/v1beta1/rabbitmqcluster_status_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package v1beta1
33
import (
44
. "github.com/onsi/ginkgo/v2"
55
. "github.com/onsi/gomega"
6-
"github.com/rabbitmq/cluster-operator/internal/status"
6+
"github.com/rabbitmq/cluster-operator/v2/internal/status"
77
appsv1 "k8s.io/api/apps/v1"
88
corev1 "k8s.io/api/core/v1"
99
discoveryv1 "k8s.io/api/discovery/v1"

api/v1beta1/rabbitmqcluster_types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package v1beta1
1111
import (
1212
. "github.com/onsi/ginkgo/v2"
1313
. "github.com/onsi/gomega"
14-
"github.com/rabbitmq/cluster-operator/internal/status"
14+
"github.com/rabbitmq/cluster-operator/v2/internal/status"
1515
appsv1 "k8s.io/api/apps/v1"
1616
corev1 "k8s.io/api/core/v1"
1717
discoveryv1 "k8s.io/api/discovery/v1"

api/v1beta1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"sigs.k8s.io/controller-runtime/pkg/metrics/filters"
2424
"sigs.k8s.io/controller-runtime/pkg/metrics/server"
2525

26-
"github.com/rabbitmq/cluster-operator/pkg/profiling"
26+
"github.com/rabbitmq/cluster-operator/v2/pkg/profiling"
2727

2828
appsv1 "k8s.io/api/apps/v1"
2929
corev1 "k8s.io/api/core/v1"
@@ -34,8 +34,8 @@ import (
3434
"sigs.k8s.io/controller-runtime/pkg/cache"
3535
"sigs.k8s.io/controller-runtime/pkg/client/config"
3636

37-
rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/api/v1beta1"
38-
controllers "github.com/rabbitmq/cluster-operator/internal/controller"
37+
rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/v2/api/v1beta1"
38+
controllers "github.com/rabbitmq/cluster-operator/v2/internal/controller"
3939
"k8s.io/apimachinery/pkg/labels"
4040
"k8s.io/apimachinery/pkg/runtime"
4141
"k8s.io/apimachinery/pkg/selection"

docs/api/rabbitmq.com.ref.asciidoc

Lines changed: 76 additions & 76 deletions
Large diffs are not rendered by default.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/rabbitmq/cluster-operator
1+
module github.com/rabbitmq/cluster-operator/v2
22

33
go 1.25.8
44

internal/controller/rabbitmqcluster_controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import (
2222
"golang.org/x/text/cases"
2323
"golang.org/x/text/language"
2424

25-
"github.com/rabbitmq/cluster-operator/internal/metadata"
26-
"github.com/rabbitmq/cluster-operator/internal/resource"
27-
"github.com/rabbitmq/cluster-operator/internal/status"
25+
"github.com/rabbitmq/cluster-operator/v2/internal/metadata"
26+
"github.com/rabbitmq/cluster-operator/v2/internal/resource"
27+
"github.com/rabbitmq/cluster-operator/v2/internal/status"
2828
k8serrors "k8s.io/apimachinery/pkg/api/errors"
2929
"k8s.io/client-go/kubernetes"
3030
"k8s.io/client-go/rest"
@@ -41,7 +41,7 @@ import (
4141
ctrl "sigs.k8s.io/controller-runtime"
4242
"sigs.k8s.io/controller-runtime/pkg/client"
4343

44-
rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/api/v1beta1"
44+
rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/v2/api/v1beta1"
4545
appsv1 "k8s.io/api/apps/v1"
4646
corev1 "k8s.io/api/core/v1"
4747
discoveryv1 "k8s.io/api/discovery/v1"

internal/controller/rabbitmqcluster_controller_test.go

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

2525
. "github.com/onsi/gomega"
2626
. "github.com/onsi/gomega/gstruct"
27-
rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/api/v1beta1"
28-
"github.com/rabbitmq/cluster-operator/internal/status"
27+
rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/v2/api/v1beta1"
28+
"github.com/rabbitmq/cluster-operator/v2/internal/status"
2929
appsv1 "k8s.io/api/apps/v1"
3030
corev1 "k8s.io/api/core/v1"
3131
apierrors "k8s.io/apimachinery/pkg/api/errors"

0 commit comments

Comments
 (0)