diff --git a/api/bases/nova.openstack.org_nova.yaml b/api/bases/nova.openstack.org_nova.yaml index 0b44d0323..f449820b2 100644 --- a/api/bases/nova.openstack.org_nova.yaml +++ b/api/bases/nova.openstack.org_nova.yaml @@ -1624,6 +1624,15 @@ spec: NodeSelector here acts as a default value and can be overridden by service specific NodeSelector Settings. type: object + notificationsBusInstance: + description: |- + NotificationsBusInstance is the name of the RabbitMqCluster CR to select + the Message Bus Service instance used by the Nova top level services and all cells to publish notifications. + If undefined, the value will be inherited from OpenStackControlPlane. + An empty value "" leaves the notification drivers unconfigured and emitting no notifications at all. + Avoid colocating it with RabbitMqClusterName, APIMessageBusInstance or CellMessageBusInstance used for RPC. + For particular Nova cells, notifications cannot be disabled, nor configured differently. + type: string novncproxyContainerImageURL: description: NoVNCContainerImageURL type: string diff --git a/api/v1beta1/nova_types.go b/api/v1beta1/nova_types.go index 75ee72468..53b864da9 100644 --- a/api/v1beta1/nova_types.go +++ b/api/v1beta1/nova_types.go @@ -17,9 +17,9 @@ limitations under the License. package v1beta1 import ( + topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1" condition "github.com/openstack-k8s-operators/lib-common/modules/common/condition" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1" ) // EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! @@ -122,10 +122,21 @@ type NovaSpecCore struct { // TopologyRef to apply the Topology defined by the associated CR referenced // by name TopologyRef *topologyv1.TopoRef `json:"topologyRef,omitempty"` + + // +kubebuilder:validation:Optional + // NotificationsBusInstance is the name of the RabbitMqCluster CR to select + // the Message Bus Service instance used by the Nova top level services and all cells to publish notifications. + // If undefined, the value will be inherited from OpenStackControlPlane. + // An empty value "" leaves the notification drivers unconfigured and emitting no notifications at all. + // Avoid colocating it with RabbitMqClusterName, APIMessageBusInstance or CellMessageBusInstance used for RPC. + // For particular Nova cells, notifications cannot be disabled, nor configured differently. + NotificationsBusInstance *string `json:"notificationsBusInstance,omitempty"` } // NovaSpec defines the desired state of Nova type NovaSpec struct { + // NOTE(bogdando): Anything that is only submitted by opentack-operator should be in NovaSpec but not in NovaSpecCore. + // +kubebuilder:validation:Required NovaSpecCore `json:",inline"` diff --git a/api/v1beta1/novacell_types.go b/api/v1beta1/novacell_types.go index 1269a4b95..23c5d6214 100644 --- a/api/v1beta1/novacell_types.go +++ b/api/v1beta1/novacell_types.go @@ -17,10 +17,10 @@ limitations under the License. package v1beta1 import ( + topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1" condition "github.com/openstack-k8s-operators/lib-common/modules/common/condition" "github.com/openstack-k8s-operators/lib-common/modules/common/tls" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1" ) // EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! diff --git a/api/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go index b1a79c985..e493aca03 100644 --- a/api/v1beta1/zz_generated.deepcopy.go +++ b/api/v1beta1/zz_generated.deepcopy.go @@ -1686,6 +1686,11 @@ func (in *NovaSpecCore) DeepCopyInto(out *NovaSpecCore) { *out = new(topologyv1beta1.TopoRef) **out = **in } + if in.NotificationsBusInstance != nil { + in, out := &in.NotificationsBusInstance, &out.NotificationsBusInstance + *out = new(string) + **out = **in + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NovaSpecCore. diff --git a/config/crd/bases/nova.openstack.org_nova.yaml b/config/crd/bases/nova.openstack.org_nova.yaml index 0b44d0323..f449820b2 100644 --- a/config/crd/bases/nova.openstack.org_nova.yaml +++ b/config/crd/bases/nova.openstack.org_nova.yaml @@ -1624,6 +1624,15 @@ spec: NodeSelector here acts as a default value and can be overridden by service specific NodeSelector Settings. type: object + notificationsBusInstance: + description: |- + NotificationsBusInstance is the name of the RabbitMqCluster CR to select + the Message Bus Service instance used by the Nova top level services and all cells to publish notifications. + If undefined, the value will be inherited from OpenStackControlPlane. + An empty value "" leaves the notification drivers unconfigured and emitting no notifications at all. + Avoid colocating it with RabbitMqClusterName, APIMessageBusInstance or CellMessageBusInstance used for RPC. + For particular Nova cells, notifications cannot be disabled, nor configured differently. + type: string novncproxyContainerImageURL: description: NoVNCContainerImageURL type: string