Skip to content

Commit

Permalink
Drop vectorized/configurator
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalKorepta committed Dec 9, 2024
1 parent d0a91c3 commit 8af6cca
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 33 deletions.
1 change: 1 addition & 0 deletions nightly-malformer/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
Expand Down
11 changes: 0 additions & 11 deletions operator/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Image URL to use all building/pushing image targets
OPERATOR_IMG_LATEST ?= "localhost/redpanda-operator:dev"
CONFIGURATOR_IMG_LATEST ?= "localhost/configurator:dev"

HELM_CONTROLLER_VERSION ?= v0.37.2
SOURCE_CONTROLLER_VERSION ?= v1.2.3
Expand Down Expand Up @@ -48,11 +47,6 @@ test: manifests generate fmt
manager: manifests generate fmt
go build -o bin/manager cmd/main.go

# Build manager binary
.PHONY: configurator
configurator: manifests generate fmt
go build -o bin/configurator cmd/configurator/main.go

.PHONY: build
build: manager configurator

Expand Down Expand Up @@ -112,11 +106,6 @@ docker-build:
echo "~~~ Building operator image :docker:"
cd .. && task k8s:build-operator-images

# Build the docker image
docker-build-configurator:
echo "~~~ Building configurator image :docker:"
cd .. && task k8s:build-operator-images

# Preload controller image to kind cluster
push-to-kind: kind-create certmanager-install
kind load docker-image ${OPERATOR_IMG_LATEST}
Expand Down
3 changes: 1 addition & 2 deletions operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,10 @@ Install cert manager
make certmanager-install
```

Build docker images for manager and configurator
Build docker images for manager

```bash
make docker-build
make docker-build-configurator
```

Deploy operator to kind
Expand Down
2 changes: 1 addition & 1 deletion operator/cmd/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (r RedpandaController) toString() string {
}

const (
defaultConfiguratorContainerImage = "vectorized/configurator"
defaultConfiguratorContainerImage = "redpanda-data/redpanda-operator"

AllControllers = RedpandaController("all")
NodeController = RedpandaController("nodeWatcher")
Expand Down
3 changes: 0 additions & 3 deletions operator/config/e2e-tests/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ images:
- name: vectorized/redpanda-operator
newName: localhost/redpanda-operator
newTag: dev
- name: vectorized/configurator
newName: localhost/configurator
newTag: dev
resources:
- ../default
patches:
Expand Down
2 changes: 1 addition & 1 deletion operator/config/e2e-tests/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
- "--metrics-bind-address=127.0.0.1:8080"
- "--leader-elect"
- "--webhook-enabled=true"
- "--configurator-base-image=localhost/configurator"
- "--configurator-base-image=localhost/redpanda-operator"
- "--configurator-tag=dev"
- "--configurator-image-pull-policy=Never"
- "--superusers-prefix=__redpanda_system__"
Expand Down
2 changes: 1 addition & 1 deletion operator/internal/controller/vectorized/test/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ var _ = BeforeSuite(func(suiteCtx SpecContext) {
AdminAPIClientFactory: testAdminAPIFactory,
DecommissionWaitInterval: 100 * time.Millisecond,
}).WithClusterDomain("cluster.local").WithConfiguratorSettings(resources.ConfiguratorSettings{
ConfiguratorBaseImage: "vectorized/configurator",
ConfiguratorBaseImage: "redpanda-data/redpanda-operator",
ConfiguratorTag: "latest",
ImagePullPolicy: "Always",
}).SetupWithManager(k8sManager)
Expand Down
1 change: 0 additions & 1 deletion operator/kuttl-test-with-flags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: TestSuite
startKIND: true
kindContainers:
- localhost/redpanda-operator:dev
- localhost/configurator:dev
- localhost/redpanda:dev
testDirs:
- ./tests/e2e-with-flags
Expand Down
1 change: 0 additions & 1 deletion operator/kuttl-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: TestSuite
startKIND: true
kindContainers:
- localhost/redpanda-operator:dev
- localhost/configurator:dev
- localhost/redpanda:dev
testDirs:
- ./tests/e2e
Expand Down
1 change: 0 additions & 1 deletion operator/kuttl-unstable-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ skipDelete: true
skipClusterDelete: true
kindContainers:
- localhost/redpanda-operator:dev
- localhost/configurator:dev
- localhost/redpanda:dev
testDirs:
- ./tests/e2e-unstable
Expand Down
2 changes: 1 addition & 1 deletion operator/pkg/resources/resource_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestEnsure_StatefulSet(t *testing.T) {
TestAdminTLSConfigProvider{},
"",
res.ConfiguratorSettings{
ConfiguratorBaseImage: "vectorized/configurator",
ConfiguratorBaseImage: "redpanda-data/redpanda-operator",
ConfiguratorTag: "latest",
ImagePullPolicy: "Always",
},
Expand Down
8 changes: 4 additions & 4 deletions operator/pkg/resources/statefulset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func TestEnsure(t *testing.T) {
TestAdminTLSConfigProvider{},
"",
resources.ConfiguratorSettings{
ConfiguratorBaseImage: "vectorized/configurator",
ConfiguratorBaseImage: "redpanda-data/redpanda-operator",
ConfiguratorTag: "latest",
ImagePullPolicy: "Always",
},
Expand Down Expand Up @@ -279,7 +279,7 @@ func defaultNodePoolstsFromCluster(pandaCluster *vectorizedv1alpha1.Cluster) *ap
Spec: corev1.PodSpec{
InitContainers: []corev1.Container{{
Name: "redpanda-configurator",
Image: "vectorized/configurator:latest",
Image: "vectorized/redpanda-operator:latest",
Resources: corev1.ResourceRequirements{
Limits: pandaCluster.Spec.Resources.Limits,
Requests: pandaCluster.Spec.Resources.Requests,
Expand Down Expand Up @@ -377,7 +377,7 @@ func stsFromCluster(pandaCluster *vectorizedv1alpha1.Cluster) *appsv1.StatefulSe
Spec: corev1.PodSpec{
InitContainers: []corev1.Container{{
Name: "redpanda-configurator",
Image: "vectorized/configurator:latest",
Image: "vectorized/redpanda-operator:latest",
Resources: corev1.ResourceRequirements{
Limits: pandaCluster.Spec.NodePools[0].Resources.Limits,
Requests: pandaCluster.Spec.NodePools[0].Resources.Requests,
Expand Down Expand Up @@ -641,7 +641,7 @@ func TestCurrentVersion(t *testing.T) {
TestAdminTLSConfigProvider{},
"",
resources.ConfiguratorSettings{
ConfiguratorBaseImage: "vectorized/configurator",
ConfiguratorBaseImage: "redpanda-data/redpanda-operator",
ConfiguratorTag: "latest",
ImagePullPolicy: "Always",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
- "--metrics-bind-address=127.0.0.1:8080"
- "--leader-elect"
- "--webhook-enabled=true"
- "--configurator-base-image=vectorized/configurator"
- "--configurator-base-image=redpanda-data/redpanda-operator"
- "--configurator-tag=v22.1.3"
- "--configurator-image-pull-policy=IfNotPresent"
imagePullPolicy: IfNotPresent
Expand Down
4 changes: 2 additions & 2 deletions operator/tests/e2e-unstable/update-conf-image/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ spec:
spec:
initContainers:
- name: redpanda-configurator
image: "vectorized/configurator:v22.1.3"
image: "redpanda-data/redpanda-operator:v22.1.3"
containers:
- name: redpanda
image: "vectorized/redpanda:v22.1.3"
image: "redpanda-data/redpanda:v22.1.3"
status:
readyReplicas: 2
---
Expand Down
6 changes: 3 additions & 3 deletions operator/tests/e2e-unstable/update-conf-image/03-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
spec:
initContainers:
- name: redpanda-configurator
image: "localhost/configurator:dev"
image: "localhost/redpanda-operator:dev"
containers:
- name: redpanda
image: "vectorized/redpanda:v22.1.3"
Expand All @@ -21,7 +21,7 @@ metadata:
spec:
initContainers:
- name: redpanda-configurator
image: "localhost/configurator:dev"
image: "localhost/redpanda-operator:dev"
status:
phase: "Running"
---
Expand All @@ -32,7 +32,7 @@ metadata:
spec:
initContainers:
- name: redpanda-configurator
image: "localhost/configurator:dev"
image: "localhost/redpanda-operator:dev"
status:
phase: "Running"
---
Expand Down

0 comments on commit 8af6cca

Please sign in to comment.