Skip to content

Commit

Permalink
Merge pull request #1 from redpanda-data/update-go-mod-paths
Browse files Browse the repository at this point in the history
update go module path from redpanda to redpanda-operator
  • Loading branch information
nk-87 authored Nov 10, 2023
2 parents 6121889 + 724a340 commit 5623131
Show file tree
Hide file tree
Showing 106 changed files with 260 additions and 260 deletions.
2 changes: 1 addition & 1 deletion src/go/cluster-to-redpanda-migration/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endif
GOOS ?= linux

VERSION ?= v0.0.1
VER_PKG=github.com/redpanda-data/redpanda/src/go/cluster-to-redpanda-migration/cmd/version
VER_PKG=github.com/redpanda-data/redpanda-operator/src/go/cluster-to-redpanda-migration/cmd/version
LDFLAGS=-X $(VER_PKG).version=$(VERSION)

GOBUILD_CLI=go build -ldflags '$(LDFLAGS)' -o $(LOCALBIN)/cluster-to-redpanda-migration/cluster-to-redpanda-migration
Expand Down
6 changes: 3 additions & 3 deletions src/go/cluster-to-redpanda-migration/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
"fmt"
"os"

vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/apis/vectorized/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/vectorized/v1alpha1"
"github.com/spf13/cobra"
"k8s.io/kubectl/pkg/util/i18n"
"sigs.k8s.io/yaml"

"github.com/redpanda-data/redpanda/src/go/cluster-to-redpanda-migration/cmd/version"
"github.com/redpanda-data/redpanda/src/go/cluster-to-redpanda-migration/pkg/migration"
"github.com/redpanda-data/redpanda-operator/src/go/cluster-to-redpanda-migration/cmd/version"
"github.com/redpanda-data/redpanda-operator/src/go/cluster-to-redpanda-migration/pkg/migration"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions src/go/cluster-to-redpanda-migration/go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module github.com/redpanda-data/redpanda/src/go/cluster-to-redpanda-migration
module github.com/redpanda-data/redpanda-operator/src/go/cluster-to-redpanda-migration

go 1.21

require (
github.com/json-iterator/go v1.1.12
github.com/r3labs/diff/v3 v3.0.1
github.com/redpanda-data/redpanda/src/go/k8s v0.0.0-20230920233823-0b32bc8b6e41
github.com/redpanda-data/redpanda-operator/src/go/k8s v0.0.0-20230920233823-0b32bc8b6e41
github.com/spf13/cobra v1.6.1
github.com/stretchr/testify v1.8.4
k8s.io/api v0.26.2
Expand Down
4 changes: 2 additions & 2 deletions src/go/cluster-to-redpanda-migration/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJf
github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY=
github.com/r3labs/diff/v3 v3.0.1 h1:CBKqf3XmNRHXKmdU7mZP1w7TV0pDyVCis1AUHtA4Xtg=
github.com/r3labs/diff/v3 v3.0.1/go.mod h1:f1S9bourRbiM66NskseyUdo0fTmEE0qKrikYJX63dgo=
github.com/redpanda-data/redpanda/src/go/k8s v0.0.0-20230920233823-0b32bc8b6e41 h1:Bp5l+IV0R6ycx0pefMvjGAcOVf5iJk5UNasIVOjBJi4=
github.com/redpanda-data/redpanda/src/go/k8s v0.0.0-20230920233823-0b32bc8b6e41/go.mod h1:mW2yIpL8x90x1bWyWOPscTwRj4z+xazXvaN9OQygODw=
github.com/redpanda-data/redpanda-operator/src/go/k8s v0.0.0-20230920233823-0b32bc8b6e41 h1:Bp5l+IV0R6ycx0pefMvjGAcOVf5iJk5UNasIVOjBJi4=
github.com/redpanda-data/redpanda-operator/src/go/k8s v0.0.0-20230920233823-0b32bc8b6e41/go.mod h1:mW2yIpL8x90x1bWyWOPscTwRj4z+xazXvaN9OQygODw=
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
Expand Down
2 changes: 1 addition & 1 deletion src/go/cluster-to-redpanda-migration/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"fmt"
"os"

"github.com/redpanda-data/redpanda/src/go/cluster-to-redpanda-migration/cmd"
"github.com/redpanda-data/redpanda-operator/src/go/cluster-to-redpanda-migration/cmd"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ package migration
import (
"fmt"

"github.com/redpanda-data/redpanda/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/apis/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/vectorized/v1alpha1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/utils/pointer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
package migration

import (
"github.com/redpanda-data/redpanda/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/apis/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/vectorized/v1alpha1"
"k8s.io/utils/pointer"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

"k8s.io/apimachinery/pkg/runtime"

"github.com/redpanda-data/redpanda/src/go/k8s/apis/redpanda/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/redpanda/v1alpha1"
)

func MigrateConfigurations(configs map[string]string, rp *v1alpha1.Redpanda) {
Expand Down
4 changes: 2 additions & 2 deletions src/go/cluster-to-redpanda-migration/pkg/migration/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"fmt"

jsoniter "github.com/json-iterator/go"
"github.com/redpanda-data/redpanda/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/apis/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/vectorized/v1alpha1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/utils/pointer"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
package migration

import (
"github.com/redpanda-data/redpanda/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/apis/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/vectorized/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

"k8s.io/utils/pointer"

"github.com/redpanda-data/redpanda/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/apis/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/vectorized/v1alpha1"
)

func MigrateRedpandaConfig(cluster *vectorizedv1alpha1.Cluster, rp *v1alpha1.Redpanda) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ package migration
import (
"fmt"

redpandav1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/apis/vectorized/v1alpha1"
redpandav1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/apis/vectorized/v1alpha1"
"k8s.io/utils/pointer"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/yaml"

"github.com/redpanda-data/redpanda/src/go/cluster-to-redpanda-migration/cmd"
"github.com/redpanda-data/redpanda-operator/src/go/cluster-to-redpanda-migration/cmd"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion src/go/k8s/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ linters-settings:
lines: 100
statements: 50
gci:
local-prefixes: github.com/redpanda-data/redpanda/src/go/k8s
local-prefixes: github.com/redpanda-data/redpanda-operator/src/go/k8s
goconst:
min-len: 2
min-occurrences: 2
Expand Down
10 changes: 5 additions & 5 deletions src/go/k8s/PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ layout:
- go.kubebuilder.io/v4
multigroup: true
projectName: redpanda-operator
repo: github.com/redpanda-data/redpanda/src/go/k8s
repo: github.com/redpanda-data/redpanda-operator/src/go/k8s
resources:
- api:
crdVersion: v1
Expand All @@ -15,7 +15,7 @@ resources:
domain: vectorized.io
group: redpanda
kind: Cluster
path: github.com/redpanda-data/redpanda/src/go/k8s/api/redpanda/v1alpha1
path: github.com/redpanda-data/redpanda-operator/src/go/k8s/api/redpanda/v1alpha1
version: v1alpha1
webhooks:
webhookVersion: v1
Expand All @@ -26,7 +26,7 @@ resources:
domain: vectorized.io
group: redpanda
kind: Console
path: github.com/redpanda-data/redpanda/src/go/k8s/api/redpanda/v1alpha1
path: github.com/redpanda-data/redpanda-operator/src/go/k8s/api/redpanda/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
Expand All @@ -35,7 +35,7 @@ resources:
domain: redpanda.com
group: cluster
kind: Redpanda
path: github.com/redpanda-data/redpanda/src/go/k8s/api/redpanda/v1alpha1
path: github.com/redpanda-data/redpanda-operator/src/go/k8s/api/redpanda/v1alpha1
plural: redpandas
version: v1alpha1
- api:
Expand All @@ -44,6 +44,6 @@ resources:
controller: true
group: cluster.redpanda.com
kind: Topic
path: github.com/redpanda-data/redpanda/src/go/k8s/api/cluster.redpanda.com/v1alpha1
path: github.com/redpanda-data/redpanda-operator/src/go/k8s/api/cluster.redpanda.com/v1alpha1
version: v1alpha1
version: "3"
6 changes: 3 additions & 3 deletions src/go/k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ resources. To verify that cert manager is ready please follow
You can simply deploy the Redpanda operator with webhook (recommended) by running the following command

```bash
kubectl apply -k https://github.com/redpanda-data/redpanda/src/go/k8s/config/default
kubectl apply -k https://github.com/redpanda-data/redpanda-operator/src/go/k8s/config/default
```

You can deploy the Redpanda operator without webhook by running the following command:

```bash
kubectl apply -k https://github.com/redpanda-data/redpanda/src/go/k8s/config/without-webhook
kubectl apply -k https://github.com/redpanda-data/redpanda-operator/src/go/k8s/config/without-webhook
```

Install sample RedpandaCluster custom resource
Expand Down Expand Up @@ -97,5 +97,5 @@ To remove all resources even the running Redpanda cluster
please run the following command:

```bash
kubectl delete -k https://github.com/redpanda-data/redpanda/src/go/k8s/config/default
kubectl delete -k https://github.com/redpanda-data/redpanda-operator/src/go/k8s/config/default
```
2 changes: 1 addition & 1 deletion src/go/k8s/api/vectorized/v1alpha1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"

"github.com/redpanda-data/redpanda/src/go/k8s/pkg/resources/featuregates"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/resources/featuregates"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions src/go/k8s/api/vectorized/v1alpha1/cluster_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/utils/ptr"

"github.com/redpanda-data/redpanda/src/go/k8s/api/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/resources/featuregates"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/api/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/resources/featuregates"
)

//nolint:funlen // this is ok for a test
Expand Down
4 changes: 2 additions & 2 deletions src/go/k8s/api/vectorized/v1alpha1/cluster_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook"
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"

"github.com/redpanda-data/redpanda/src/go/k8s/pkg/resources/featuregates"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/utils"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/resources/featuregates"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/utils"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion src/go/k8s/api/vectorized/v1alpha1/cluster_webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"k8s.io/utils/ptr"
"sigs.k8s.io/controller-runtime/pkg/client/fake"

"github.com/redpanda-data/redpanda/src/go/k8s/api/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/api/vectorized/v1alpha1"
)

var fakeK8sClient = fake.NewClientBuilder().Build()
Expand Down
2 changes: 1 addition & 1 deletion src/go/k8s/api/vectorized/v1alpha1/common_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/api/vectorized/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/api/vectorized/v1alpha1"
)

func TestFinalizerTimeout(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions src/go/k8s/api/vectorized/v1alpha1/webhook_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
"sigs.k8s.io/controller-runtime/pkg/webhook"

vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/api/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda/src/go/k8s/internal/testutils"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/api/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/internal/testutils"
)

// These tests use Ginkgo (BDD-style Go testing framework). Refer to
Expand Down
4 changes: 2 additions & 2 deletions src/go/k8s/cmd/configurator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (

"github.com/redpanda-data/redpanda/src/go/rpk/pkg/config"

"github.com/redpanda-data/redpanda/src/go/k8s/pkg/networking"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/utils"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/networking"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/utils"
)

const (
Expand Down
18 changes: 9 additions & 9 deletions src/go/k8s/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook"
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"

clusterredpandacomv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/api/cluster.redpanda.com/v1alpha1"
redpandav1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/api/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/api/vectorized/v1alpha1"
clusterredpandacomcontrollers "github.com/redpanda-data/redpanda/src/go/k8s/internal/controller/cluster.redpanda.com"
redpandacontrollers "github.com/redpanda-data/redpanda/src/go/k8s/internal/controller/redpanda"
adminutils "github.com/redpanda-data/redpanda/src/go/k8s/pkg/admin"
consolepkg "github.com/redpanda-data/redpanda/src/go/k8s/pkg/console"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/resources"
redpandawebhooks "github.com/redpanda-data/redpanda/src/go/k8s/webhooks/redpanda"
clusterredpandacomv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/api/cluster.redpanda.com/v1alpha1"
redpandav1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/api/redpanda/v1alpha1"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/api/vectorized/v1alpha1"
clusterredpandacomcontrollers "github.com/redpanda-data/redpanda-operator/src/go/k8s/internal/controller/cluster.redpanda.com"
redpandacontrollers "github.com/redpanda-data/redpanda-operator/src/go/k8s/internal/controller/redpanda"
adminutils "github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/admin"
consolepkg "github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/console"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/resources"
redpandawebhooks "github.com/redpanda-data/redpanda-operator/src/go/k8s/webhooks/redpanda"
)

type RedpandaController string
Expand Down
2 changes: 1 addition & 1 deletion src/go/k8s/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/redpanda-data/redpanda/src/go/k8s
module github.com/redpanda-data/redpanda-operator/src/go/k8s

go 1.21

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ discovered.
1. Install Redpanda operator CRDs:

```sh
kubectl apply -k 'https://github.com/redpanda-data/redpanda/src/go/k8s/config/crd?ref={{ template "chart.appVersion" . }}'
kubectl apply -k 'https://github.com/redpanda-data/redpanda-operator/src/go/k8s/config/crd?ref={{ template "chart.appVersion" . }}'
```

> The CRDs are decoupled from helm chart, so that helm release can be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
k8sclient "sigs.k8s.io/controller-runtime/pkg/client"

"github.com/redpanda-data/redpanda/src/go/k8s/api/cluster.redpanda.com/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/api/cluster.redpanda.com/v1alpha1"
)

var ErrEmptyBrokerList = errors.New("empty broker list")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log"
v2 "sigs.k8s.io/controller-runtime/pkg/webhook/conversion/testdata/api/v2"

"github.com/redpanda-data/redpanda/src/go/k8s/api/cluster.redpanda.com/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/api/cluster.redpanda.com/v1alpha1"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/redpanda-data/redpanda/src/go/k8s/api/cluster.redpanda.com/v1alpha1"
clusterredpandacom "github.com/redpanda-data/redpanda/src/go/k8s/internal/controller/cluster.redpanda.com"
"github.com/redpanda-data/redpanda/src/go/k8s/internal/testutils"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/api/cluster.redpanda.com/v1alpha1"
clusterredpandacom "github.com/redpanda-data/redpanda-operator/src/go/k8s/internal/controller/cluster.redpanda.com"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/internal/testutils"
)

func TestReconcile(t *testing.T) { // nolint:funlen // These tests have clear subtests.
Expand Down
14 changes: 7 additions & 7 deletions src/go/k8s/internal/controller/redpanda/cluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ import (
"github.com/redpanda-data/redpanda/src/go/rpk/pkg/api/admin"
"github.com/redpanda-data/redpanda/src/go/rpk/pkg/config"

vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/api/vectorized/v1alpha1"
adminutils "github.com/redpanda-data/redpanda/src/go/k8s/pkg/admin"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/labels"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/networking"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/resources"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/resources/featuregates"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/utils"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/api/vectorized/v1alpha1"
adminutils "github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/admin"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/labels"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/networking"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/resources"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/resources/featuregates"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/utils"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"fmt"

"github.com/go-logr/logr"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda/src/go/k8s/api/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/networking"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/resources"
"github.com/redpanda-data/redpanda/src/go/k8s/pkg/resources/certmanager"
vectorizedv1alpha1 "github.com/redpanda-data/redpanda-operator/src/go/k8s/api/vectorized/v1alpha1"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/networking"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/resources"
"github.com/redpanda-data/redpanda-operator/src/go/k8s/pkg/resources/certmanager"
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"
)
Expand Down
Loading

0 comments on commit 5623131

Please sign in to comment.