Skip to content

Commit fa595ff

Browse files
authored
Update module and import path for v2 (#2224)
* Update module and import path for v2
1 parent 4938468 commit fa595ff

File tree

206 files changed

+460
-420
lines changed

Some content is hidden

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

206 files changed

+460
-420
lines changed

api/v1beta2/foundationdbcluster_types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ type MaintenanceModeOptions struct {
12231223

12241224
// ResetMaintenanceMode defines whether the operator should reset the maintenance mode if all storage processes
12251225
// under the maintenance zone have been restarted. The default is false. For more details see:
1226-
// https://github.com/FoundationDB/fdb-kubernetes-operator/blob/improve-maintenance-mode-integration/docs/manual/operations.md#maintenance
1226+
// https://github.com/FoundationDB/fdb-kubernetes-operator/v2/blob/improve-maintenance-mode-integration/docs/manual/operations.md#maintenance
12271227
// Default is false.
12281228
ResetMaintenanceMode *bool `json:"resetMaintenanceMode,omitempty"`
12291229

@@ -2971,15 +2971,15 @@ func (cluster *FoundationDBCluster) GetCurrentProcessGroupsAndProcessCounts() (m
29712971
// GetNextRandomProcessGroupID will return a randomly picked ProcessGroupID, the ID number will be between 1 and maxProcessGroupIDNum.
29722972
// This method makes sure that the returned ProcessGroupID is not in use and not marked to be removed.
29732973
// Using a randomized ProcessGroupID will reduce the risk of reusing the same ProcessGroupID for different process groups, see:
2974-
// https://github.com/FoundationDB/fdb-kubernetes-operator/issues/2071
2974+
// https://github.com/FoundationDB/fdb-kubernetes-operator/v2/issues/2071
29752975
func (cluster *FoundationDBCluster) GetNextRandomProcessGroupID(processClass ProcessClass, processGroupIDs map[int]bool) ProcessGroupID {
29762976
return cluster.GetNextRandomProcessGroupIDWithExclusions(processClass, processGroupIDs, nil)
29772977
}
29782978

29792979
// GetNextRandomProcessGroupIDWithExclusions will return a randomly picked ProcessGroupID, the ID number will be between 1 and MaxProcessGroupIDNum.
29802980
// This method makes sure that the returned ProcessGroupID is not in use and not marked to be removed and is not excluded.
29812981
// Using a randomized ProcessGroupID will reduce the risk of reusing the same ProcessGroupID for different process groups, see:
2982-
// https://github.com/FoundationDB/fdb-kubernetes-operator/issues/2071
2982+
// https://github.com/FoundationDB/fdb-kubernetes-operator/v2/issues/2071
29832983
func (cluster *FoundationDBCluster) GetNextRandomProcessGroupIDWithExclusions(processClass ProcessClass, processGroupIDs map[int]bool, exclusions map[ProcessGroupID]None) ProcessGroupID {
29842984
var processGroupID ProcessGroupID
29852985
for {
@@ -3012,7 +3012,7 @@ func (cluster *FoundationDBCluster) newProcessGroupIDAllowed(processGroupID Proc
30123012
}
30133013

30143014
// If the randomly picked process group is part of the locality based exclusions, we shouldn't pick it.
3015-
// See: https://github.com/FoundationDB/fdb-kubernetes-operator/issues/1862
3015+
// See: https://github.com/FoundationDB/fdb-kubernetes-operator/v2/issues/1862
30163016
if _, ok := exclusions[processGroupID]; ok {
30173017
return false
30183018
}

controllers/add_pods.go

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

27-
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/api/v1beta2"
28-
"github.com/FoundationDB/fdb-kubernetes-operator/internal"
27+
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/v2/api/v1beta2"
28+
"github.com/FoundationDB/fdb-kubernetes-operator/v2/internal"
2929
"github.com/go-logr/logr"
3030
corev1 "k8s.io/api/core/v1"
3131
k8serrors "k8s.io/apimachinery/pkg/api/errors"

controllers/add_pods_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ package controllers
2222

2323
import (
2424
"context"
25-
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/api/v1beta2"
26-
"github.com/FoundationDB/fdb-kubernetes-operator/internal"
25+
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/v2/api/v1beta2"
26+
"github.com/FoundationDB/fdb-kubernetes-operator/v2/internal"
2727
. "github.com/onsi/ginkgo/v2"
2828
. "github.com/onsi/gomega"
2929
corev1 "k8s.io/api/core/v1"

controllers/add_process_groups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929

3030
corev1 "k8s.io/api/core/v1"
3131

32-
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/api/v1beta2"
32+
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/v2/api/v1beta2"
3333
)
3434

3535
// addProcessGroups provides a reconciliation step for adding new pods to a cluster.

controllers/add_process_groups_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import (
2424
"context"
2525
"fmt"
2626

27-
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/api/v1beta2"
28-
"github.com/FoundationDB/fdb-kubernetes-operator/internal"
29-
"github.com/FoundationDB/fdb-kubernetes-operator/pkg/fdbadminclient/mock"
27+
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/v2/api/v1beta2"
28+
"github.com/FoundationDB/fdb-kubernetes-operator/v2/internal"
29+
"github.com/FoundationDB/fdb-kubernetes-operator/v2/pkg/fdbadminclient/mock"
3030
. "github.com/onsi/ginkgo/v2"
3131
. "github.com/onsi/gomega"
3232
"k8s.io/utils/pointer"

controllers/add_pvcs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import (
2525

2626
"github.com/go-logr/logr"
2727

28-
"github.com/FoundationDB/fdb-kubernetes-operator/internal"
28+
"github.com/FoundationDB/fdb-kubernetes-operator/v2/internal"
2929

30-
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/api/v1beta2"
30+
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/v2/api/v1beta2"
3131
corev1 "k8s.io/api/core/v1"
3232
k8serrors "k8s.io/apimachinery/pkg/api/errors"
3333
"sigs.k8s.io/controller-runtime/pkg/client"

controllers/add_pvcs_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import (
2424
"context"
2525
"sort"
2626

27-
"github.com/FoundationDB/fdb-kubernetes-operator/internal"
27+
"github.com/FoundationDB/fdb-kubernetes-operator/v2/internal"
2828

29-
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/api/v1beta2"
29+
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/v2/api/v1beta2"
3030
. "github.com/onsi/ginkgo/v2"
3131
. "github.com/onsi/gomega"
3232
corev1 "k8s.io/api/core/v1"

controllers/add_services.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ package controllers
2222

2323
import (
2424
"context"
25-
"github.com/FoundationDB/fdb-kubernetes-operator/internal"
25+
"github.com/FoundationDB/fdb-kubernetes-operator/v2/internal"
2626
"github.com/go-logr/logr"
2727

2828
"k8s.io/apimachinery/pkg/api/equality"
2929
k8serrors "k8s.io/apimachinery/pkg/api/errors"
3030
"sigs.k8s.io/controller-runtime/pkg/client"
3131

32-
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/api/v1beta2"
32+
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/v2/api/v1beta2"
3333
corev1 "k8s.io/api/core/v1"
3434
)
3535

controllers/add_services_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import (
2626

2727
"k8s.io/utils/pointer"
2828

29-
"github.com/FoundationDB/fdb-kubernetes-operator/internal"
29+
"github.com/FoundationDB/fdb-kubernetes-operator/v2/internal"
3030

31-
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/api/v1beta2"
31+
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/v2/api/v1beta2"
3232
. "github.com/onsi/ginkgo/v2"
3333
. "github.com/onsi/gomega"
3434
corev1 "k8s.io/api/core/v1"

controllers/admin_client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import (
2525
"fmt"
2626
"net"
2727

28-
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/api/v1beta2"
29-
"github.com/FoundationDB/fdb-kubernetes-operator/internal"
30-
"github.com/FoundationDB/fdb-kubernetes-operator/pkg/fdbadminclient/mock"
28+
fdbv1beta2 "github.com/FoundationDB/fdb-kubernetes-operator/v2/api/v1beta2"
29+
"github.com/FoundationDB/fdb-kubernetes-operator/v2/internal"
30+
"github.com/FoundationDB/fdb-kubernetes-operator/v2/pkg/fdbadminclient/mock"
3131
. "github.com/onsi/ginkgo/v2"
3232
. "github.com/onsi/gomega"
3333
"k8s.io/utils/pointer"

0 commit comments

Comments
 (0)