@@ -27,7 +27,9 @@ import (
2727 horizonv1 "github.com/openstack-k8s-operators/horizon-operator/api/v1beta1"
2828 memcachedv1 "github.com/openstack-k8s-operators/infra-operator/apis/memcached/v1beta1"
2929 networkv1 "github.com/openstack-k8s-operators/infra-operator/apis/network/v1beta1"
30+ rabbitmqv1 "github.com/openstack-k8s-operators/infra-operator/apis/rabbitmq/v1beta1"
3031 redisv1 "github.com/openstack-k8s-operators/infra-operator/apis/redis/v1beta1"
32+ topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1"
3133 ironicv1 "github.com/openstack-k8s-operators/ironic-operator/api/v1beta1"
3234 keystonev1 "github.com/openstack-k8s-operators/keystone-operator/api/v1beta1"
3335 condition "github.com/openstack-k8s-operators/lib-common/modules/common/condition"
@@ -45,17 +47,11 @@ import (
4547 placementv1 "github.com/openstack-k8s-operators/placement-operator/api/v1beta1"
4648 swiftv1 "github.com/openstack-k8s-operators/swift-operator/api/v1beta1"
4749 telemetryv1 "github.com/openstack-k8s-operators/telemetry-operator/api/v1beta1"
48- rabbitmqv2 "github.com/rabbitmq/cluster-operator/v2/api/v1beta1"
49- topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1"
50+
5051 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
5152)
5253
5354const (
54- // Container image fall-back defaults
55-
56- // RabbitMqContainerImage is the fall-back container image for RabbitMQ
57- RabbitMqContainerImage = "quay.io/podified-antelope-centos9/openstack-rabbitmq:current-podified"
58-
5955 // IngressCaName -
6056 IngressCaName = tls .DefaultCAPrefix + string (service .EndpointPublic )
6157 // InternalCaName -
@@ -489,7 +485,7 @@ type RabbitmqSection struct {
489485 // +kubebuilder:validation:Optional
490486 // +operator-sdk:csv:customresourcedefinitions:type=spec
491487 // Templates - Overrides to use when creating the Rabbitmq clusters
492- Templates * map [string ]RabbitmqTemplate `json:"templates"`
488+ Templates * map [string ]rabbitmqv1. RabbitMqSpecCore `json:"templates"`
493489}
494490
495491// MemcachedSection defines the desired state of Memcached services
@@ -506,18 +502,6 @@ type MemcachedSection struct {
506502 Templates * map [string ]memcachedv1.MemcachedSpecCore `json:"templates,omitempty"`
507503}
508504
509- // RabbitmqTemplate definition
510- type RabbitmqTemplate struct {
511- // +kubebuilder:validation:Required
512- // +operator-sdk:csv:customresourcedefinitions:type=spec
513- // Overrides to use when creating the Rabbitmq clusters
514- rabbitmqv2.RabbitmqClusterSpecCore `json:",inline"`
515- // +kubebuilder:validation:Optional
516- // +operator-sdk:csv:customresourcedefinitions:type=spec
517- // NodeSelector to target subset of worker nodes running this service
518- NodeSelector * map [string ]string `json:"nodeSelector,omitempty"`
519- }
520-
521505// OvnSection defines the desired state of OVN services
522506type OvnSection struct {
523507 // +kubebuilder:validation:Optional
0 commit comments