@@ -25,6 +25,7 @@ import (
2525
2626 k8s_corev1 "k8s.io/api/core/v1"
2727 "k8s.io/apimachinery/pkg/types"
28+ "k8s.io/utils/ptr"
2829 "sigs.k8s.io/controller-runtime/pkg/client"
2930
3031 cinderv1 "github.com/openstack-k8s-operators/cinder-operator/api/v1beta1"
@@ -57,6 +58,7 @@ type Names struct {
5758 HorizonName types.NamespacedName
5859 HeatName types.NamespacedName
5960 TelemetryName types.NamespacedName
61+ NovaName types.NamespacedName
6062 DBName types.NamespacedName
6163 DBCertName types.NamespacedName
6264 DBCell1Name types.NamespacedName
@@ -65,6 +67,7 @@ type Names struct {
6567 RabbitMQCertName types.NamespacedName
6668 RabbitMQCell1Name types.NamespacedName
6769 RabbitMQCell1CertName types.NamespacedName
70+ RabbitMQNotificationsName types.NamespacedName
6871 ServiceAccountName types.NamespacedName
6972 RoleName types.NamespacedName
7073 RoleBindingName types.NamespacedName
@@ -168,6 +171,10 @@ func CreateNames(openstackControlplaneName types.NamespacedName) Names {
168171 Namespace : openstackControlplaneName .Namespace ,
169172 Name : "telemetry" ,
170173 },
174+ NovaName : types.NamespacedName {
175+ Namespace : openstackControlplaneName .Namespace ,
176+ Name : "nova" ,
177+ },
171178 DBName : types.NamespacedName {
172179 Namespace : openstackControlplaneName .Namespace ,
173180 Name : "openstack" ,
@@ -196,6 +203,10 @@ func CreateNames(openstackControlplaneName types.NamespacedName) Names {
196203 Namespace : openstackControlplaneName .Namespace ,
197204 Name : "rabbitmq-cell1" ,
198205 },
206+ RabbitMQNotificationsName : types.NamespacedName {
207+ Namespace : openstackControlplaneName .Namespace ,
208+ Name : "rabbitmq-notifications" ,
209+ },
199210 RabbitMQCell1CertName : types.NamespacedName {
200211 Namespace : openstackControlplaneName .Namespace ,
201212 Name : "cert-rabbitmq-cell1-svc" ,
@@ -484,6 +495,9 @@ func GetDefaultOpenStackControlPlaneSpec() map[string]interface{} {
484495 names .RabbitMQCell1Name .Name : map [string ]interface {}{
485496 "replicas" : 1 ,
486497 },
498+ names .RabbitMQNotificationsName .Name : map [string ]interface {}{
499+ "replicas" : 1 ,
500+ },
487501 }
488502 galeraTemplate := map [string ]interface {}{
489503 names .DBName .Name : map [string ]interface {}{
@@ -525,6 +539,9 @@ func GetDefaultOpenStackControlPlaneSpec() map[string]interface{} {
525539 return map [string ]interface {}{
526540 "secret" : "osp-secret" ,
527541 "storageClass" : "local-storage" ,
542+ "notificationsBus" : map [string ]interface {}{
543+ "rabbitMqClusterName" : ptr .To ("rabbitmq-notifications" ),
544+ },
528545 "galera" : map [string ]interface {}{
529546 "enabled" : true ,
530547 "templates" : galeraTemplate ,
0 commit comments