Skip to content

Commit 4a6aa76

Browse files
lmicciniclaude
andcommitted
Drop rabbitmq-cluster-operator dependency and manage RabbitMQ directly
Remove the rabbitmq-cluster-operator deployment and clean up its namespaced resources after all RabbitmqCluster instances have been migrated by the infra-operator. Cluster-scoped RBAC is left in place to avoid breaking user-installed instances in other namespaces. The CRD is only deleted when no RabbitmqCluster instances remain cluster-wide. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3fd1765 commit 4a6aa76

39 files changed

Lines changed: 387 additions & 5857 deletions

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ bindata: kustomize yq ## Call sync bindata script
166166
sed -i bindata/operator/operator.yaml -e "/customRequests/c\\ cpu: {{ .OpenStackOperator.Deployment.Manager.Resources.Requests.CPU }}\n memory: {{ .OpenStackOperator.Deployment.Manager.Resources.Requests.Memory }}"
167167
sed -i bindata/operator/operator.yaml -e "/customTolerations/c\\ tolerations:\n{{- range .OpenStackOperator.Deployment.Tolerations }}\n - key: \"{{ .Key }}\"\n{{- if .Operator }}\n operator: \"{{ .Operator }}\"\n{{- end }}\n{{- if .Value }}\n value: \"{{ .Value }}\"\n{{- end }}\n{{- if .Effect }}\n effect: \"{{ .Effect }}\"\n{{- end }}\n{{- if .TolerationSeconds }}\n tolerationSeconds: {{ .TolerationSeconds }}\n{{- end }}\n{{- end }}"
168168
cp config/operator/managers.yaml bindata/operator/
169-
cp config/operator/rabbit.yaml bindata/operator/
170169
$(KUSTOMIZE) build config/rbac > bindata/rbac/rbac.yaml
171170
/bin/bash hack/sync-bindata.sh
172171

api/bases/core.openstack.org_openstackcontrolplanes.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14264,8 +14264,6 @@ spec:
1426414264
x-kubernetes-preserve-unknown-fields: true
1426514265
type: object
1426614266
persistence:
14267-
default:
14268-
storage: 10Gi
1426914267
properties:
1427014268
storage:
1427114269
anyOf:
@@ -14329,6 +14327,10 @@ spec:
1432914327
x-kubernetes-list-type: atomic
1433014328
type: object
1433114329
queueType:
14330+
enum:
14331+
- Mirrored
14332+
- Quorum
14333+
- ""
1433214334
type: string
1433314335
rabbitmq:
1433414336
properties:
@@ -14459,8 +14461,11 @@ spec:
1445914461
type: object
1446014462
skipPostDeploySteps:
1446114463
type: boolean
14464+
targetVersion:
14465+
pattern: ^\d+\.\d+(\.\d+)?$
14466+
type: string
1446214467
terminationGracePeriodSeconds:
14463-
default: 604800
14468+
default: 60
1446414469
format: int64
1446514470
minimum: 0
1446614471
type: integer
@@ -14489,6 +14494,7 @@ spec:
1448914494
type: string
1449014495
type: object
1449114496
type: array
14497+
x-kubernetes-list-type: atomic
1449214498
topologyRef:
1449314499
properties:
1449414500
name:

api/bases/core.openstack.org_openstackversions.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ spec:
250250
properties:
251251
glanceWsgi:
252252
type: string
253+
rabbitmqVersion:
254+
type: string
253255
type: object
254256
type: object
255257
availableVersion:
@@ -685,6 +687,8 @@ spec:
685687
properties:
686688
glanceWsgi:
687689
type: string
690+
rabbitmqVersion:
691+
type: string
688692
type: object
689693
trackedCustomImages:
690694
additionalProperties:

api/bases/operator.openstack.org_openstacks.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ spec:
141141
- openstack-baremetal
142142
- ovn
143143
- placement
144-
- rabbitmq-cluster
145144
- swift
146145
- telemetry
147146
- test

api/core/v1beta1/openstackversion_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ type ContainerTemplate struct {
177177
// ServiceDefaults - struct that contains defaults for OSP services that can change over time
178178
// but are associated with a specific OpenStack release version
179179
type ServiceDefaults struct {
180-
GlanceWsgi *string `json:"glanceWsgi,omitempty"`
180+
GlanceWsgi *string `json:"glanceWsgi,omitempty"`
181+
RabbitmqVersion *string `json:"rabbitmqVersion,omitempty"`
181182
}
182183

183184
// OpenStackVersionStatus defines the observed state of OpenStackVersion

api/core/v1beta1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/openstack-k8s-operators/glance-operator/api v0.6.1-0.20260401122242-169435483c1b
1414
github.com/openstack-k8s-operators/heat-operator/api v0.6.1-0.20260328071427-ab8ab6bb163b
1515
github.com/openstack-k8s-operators/horizon-operator/api v0.6.1-0.20260328071141-745dbfa14e3b
16-
github.com/openstack-k8s-operators/infra-operator/apis v0.6.1-0.20260401053442-e06fc1a33511
16+
github.com/openstack-k8s-operators/infra-operator/apis v0.6.1-0.20260407114702-f57b3a58dcdf
1717
github.com/openstack-k8s-operators/ironic-operator/api v0.6.1-0.20260331205439-95a1fff93598
1818
github.com/openstack-k8s-operators/keystone-operator/api v0.6.1-0.20260321081256-de45f3b1de4f
1919
github.com/openstack-k8s-operators/lib-common/modules/common v0.6.1-0.20260331122750-ecff41ebb61d
@@ -86,7 +86,6 @@ require (
8686
github.com/prometheus/client_model v0.6.2 // indirect
8787
github.com/prometheus/common v0.65.0 // indirect
8888
github.com/prometheus/procfs v0.16.1 // indirect
89-
github.com/rabbitmq/cluster-operator/v2 v2.16.0 // indirect
9089
github.com/robfig/cron/v3 v3.0.1 // indirect
9190
github.com/spf13/pflag v1.0.9 // indirect
9291
github.com/x448/float16 v0.8.4 // indirect

api/go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ github.com/openstack-k8s-operators/heat-operator/api v0.6.1-0.20260328071427-ab8
126126
github.com/openstack-k8s-operators/heat-operator/api v0.6.1-0.20260328071427-ab8ab6bb163b/go.mod h1:P6x0NoadjMOG+4OUltsQIjVBnuKKNdQ7tNT/RgPy1HQ=
127127
github.com/openstack-k8s-operators/horizon-operator/api v0.6.1-0.20260328071141-745dbfa14e3b h1:ID/qyo2yHjODs92PkzYTXDa49p9wXyrJgoKuOcacDwU=
128128
github.com/openstack-k8s-operators/horizon-operator/api v0.6.1-0.20260328071141-745dbfa14e3b/go.mod h1:XGpzeDWNKorvRTrFdDk17rcd1KvlYxIO2Ad1tBFx4jc=
129-
github.com/openstack-k8s-operators/infra-operator/apis v0.6.1-0.20260401053442-e06fc1a33511 h1:W7AlsQoccL1UtW9FqF82Owz/8n8hmJ29/X5+2bCRUHQ=
130-
github.com/openstack-k8s-operators/infra-operator/apis v0.6.1-0.20260401053442-e06fc1a33511/go.mod h1:EKtKXGi4O7t/oExH1rGylTHAO5/LasNrf40a3ATT6uI=
129+
github.com/openstack-k8s-operators/infra-operator/apis v0.6.1-0.20260407114702-f57b3a58dcdf h1:xMhl2jq4e26Xnq5PcR+QtmvNmHVUUwri+sPELOp1PC8=
130+
github.com/openstack-k8s-operators/infra-operator/apis v0.6.1-0.20260407114702-f57b3a58dcdf/go.mod h1:c6jkCYVpYXazuRYxq7UEa+P+gKCSo5bFB85QvZf6nIg=
131131
github.com/openstack-k8s-operators/ironic-operator/api v0.6.1-0.20260331205439-95a1fff93598 h1:+nkradPSUMkWl7CfIMAByA6Q+IClAcndYEvgwRfQohU=
132132
github.com/openstack-k8s-operators/ironic-operator/api v0.6.1-0.20260331205439-95a1fff93598/go.mod h1:qJdBr1LodyiirL00WncMDH8DH3qHkak/i9x8qCZHm0w=
133133
github.com/openstack-k8s-operators/keystone-operator/api v0.6.1-0.20260321081256-de45f3b1de4f h1:60I2YLHRznTY2BQXqXWc+ByJ3ipdQgKgW52t9J8C5DY=
@@ -154,8 +154,6 @@ github.com/openstack-k8s-operators/ovn-operator/api v0.6.1-0.20260402040941-c0c6
154154
github.com/openstack-k8s-operators/ovn-operator/api v0.6.1-0.20260402040941-c0c67dde993d/go.mod h1:wtnlbYH3u8jHHKltKDCf0ILNtCe7ZnOJSreSGXCbb2w=
155155
github.com/openstack-k8s-operators/placement-operator/api v0.6.1-0.20260321143858-aaffa49d81f5 h1:/fQT4PDa30kz1k9dB48WcWHhEE1OP7hRXJuuURNGivo=
156156
github.com/openstack-k8s-operators/placement-operator/api v0.6.1-0.20260321143858-aaffa49d81f5/go.mod h1:IuKiktN8yyVTD6T57XZN9Cbx0ZFIU+gwO4OLFa8nxu8=
157-
github.com/openstack-k8s-operators/rabbitmq-cluster-operator/v2 v2.6.1-0.20250929174222-a0d328fa4dec h1:saovr368HPAKHN0aRPh8h8n9s9dn3d8Frmfua0UYRlc=
158-
github.com/openstack-k8s-operators/rabbitmq-cluster-operator/v2 v2.6.1-0.20250929174222-a0d328fa4dec/go.mod h1:Nh2NEePLjovUQof2krTAg4JaAoLacqtPTZQXK6izNfg=
159157
github.com/openstack-k8s-operators/swift-operator/api v0.6.1-0.20260402140833-cb3823c777ae h1:iBcTYtdmtTdQ/YK4QlwVsgVcJYXoJvuzPROQbKIMo+M=
160158
github.com/openstack-k8s-operators/swift-operator/api v0.6.1-0.20260402140833-cb3823c777ae/go.mod h1:TB5DRh6pbSZU8RXt+wEnL1h8/fiDxfQysucOeRnEXQ8=
161159
github.com/openstack-k8s-operators/telemetry-operator/api v0.6.1-0.20260330123832-4b3fd508ca2d h1:W2HilD/wjvNBsOY7ALXewZbPuRxdPxRHGTuo1Pm9wvo=

api/operator/v1beta1/openstack_types.go

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ const (
4444
OpenStackBaremetalOperatorName = "openstack-baremetal"
4545
OvnOperatorName = "ovn"
4646
PlacementOperatorName = "placement"
47-
RabbitMQOperatorName = "rabbitmq-cluster"
4847
SwiftOperatorName = "swift"
4948
TelemetryOperatorName = "telemetry"
5049
TestOperatorName = "test"
@@ -161,21 +160,6 @@ var (
161160
{
162161
Name: PlacementOperatorName,
163162
},
164-
{
165-
Name: RabbitMQOperatorName,
166-
ControllerManager: ContainerSpec{
167-
Resources: corev1.ResourceRequirements{
168-
Requests: corev1.ResourceList{
169-
corev1.ResourceCPU: resource.MustParse("5m"),
170-
corev1.ResourceMemory: resource.MustParse("64Mi"),
171-
},
172-
Limits: corev1.ResourceList{
173-
corev1.ResourceCPU: resource.MustParse("200m"),
174-
corev1.ResourceMemory: resource.MustParse("500Mi"),
175-
},
176-
},
177-
},
178-
},
179163
{
180164
Name: SwiftOperatorName,
181165
},
@@ -204,7 +188,7 @@ type OpenStackSpec struct {
204188
type OperatorSpec struct {
205189
// +kubebuilder:validation:Required
206190
// +kubebuilder:validation:MinLength=1
207-
// +kubebuilder:validation:Enum:=openstack;barbican;cinder;designate;glance;heat;horizon;infra;ironic;keystone;manila;mariadb;neutron;nova;octavia;openstack-baremetal;ovn;placement;rabbitmq-cluster;swift;telemetry;test;watcher
191+
// +kubebuilder:validation:Enum:=openstack;barbican;cinder;designate;glance;heat;horizon;infra;ironic;keystone;manila;mariadb;neutron;nova;octavia;openstack-baremetal;ovn;placement;swift;telemetry;test;watcher
208192
// Name of the service operators.
209193
Name string `json:"name"`
210194

bindata/crds/crds.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14529,8 +14529,6 @@ spec:
1452914529
x-kubernetes-preserve-unknown-fields: true
1453014530
type: object
1453114531
persistence:
14532-
default:
14533-
storage: 10Gi
1453414532
properties:
1453514533
storage:
1453614534
anyOf:
@@ -14594,6 +14592,10 @@ spec:
1459414592
x-kubernetes-list-type: atomic
1459514593
type: object
1459614594
queueType:
14595+
enum:
14596+
- Mirrored
14597+
- Quorum
14598+
- ""
1459714599
type: string
1459814600
rabbitmq:
1459914601
properties:
@@ -14724,8 +14726,11 @@ spec:
1472414726
type: object
1472514727
skipPostDeploySteps:
1472614728
type: boolean
14729+
targetVersion:
14730+
pattern: ^\d+\.\d+(\.\d+)?$
14731+
type: string
1472714732
terminationGracePeriodSeconds:
14728-
default: 604800
14733+
default: 60
1472914734
format: int64
1473014735
minimum: 0
1473114736
type: integer
@@ -14754,6 +14759,7 @@ spec:
1475414759
type: string
1475514760
type: object
1475614761
type: array
14762+
x-kubernetes-list-type: atomic
1475714763
topologyRef:
1475814764
properties:
1475914765
name:
@@ -21470,6 +21476,8 @@ spec:
2147021476
properties:
2147121477
glanceWsgi:
2147221478
type: string
21479+
rabbitmqVersion:
21480+
type: string
2147321481
type: object
2147421482
type: object
2147521483
availableVersion:
@@ -21905,6 +21913,8 @@ spec:
2190521913
properties:
2190621914
glanceWsgi:
2190721915
type: string
21916+
rabbitmqVersion:
21917+
type: string
2190821918
type: object
2190921919
trackedCustomImages:
2191021920
additionalProperties:

0 commit comments

Comments
 (0)