Commit 60e0ea3
committed
Common Notifications bus interface for services
Add a top level field in OpenStackControlPlaneSpec field that holds a
a RabbitMQ cluster CR name reference to be used for publishing and consuming
of notifications in the managed OpenStack instance.
Allow overriding it in OpenStack services templates.
Note about a special handling expected for an empty value by the services
that will be supporting this interface. It should provide backwards
compatibility during oscp and services CRDs upgrades.
There is no an empty value handling top scope (cannot disable
notifications top-scope as a cluster-wide), however. It may only take
a default value of a 'rabbitmq'. Use the service templates to override
it for an empty value, if needed.
The proposed CRD design is not expandable into supporting additional
messaging backends (provided via direct transport_url secret refs, or
the like). For that, the structure should be used instead of a simple string value.
Assume openstack-operator controller should implement a basic
inheritance mechanism from the top level field to the service template
based on the following rules:
if OSCP.Spec.<service_name>.Template.NotificationsBusInstance == nil
OSCP.Spec.<service_name>.Template.NotificationsBusInstance = \
OSCP.Spec.NotificationsBus.RabbitMqClusterName
We leave further handling of empty values for the services specific
implementation.
Assume a similar pattern to be applied later for
KeystoneAPI.Spec.RabbitMqClusterName and other services that need to
consume or publish notifications to keep things consistent across the
board.
Signed-off-by: Bohdan Dobrelia <bdobreli@redhat.com>1 parent 7b57a2e commit 60e0ea3
4 files changed
Lines changed: 18 additions & 1 deletion
File tree
- apis
- bases
- core/v1beta1
- bindata/crds
- config/crd/bases
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9498 | 9498 | | |
9499 | 9499 | | |
9500 | 9500 | | |
| 9501 | + | |
| 9502 | + | |
| 9503 | + | |
9501 | 9504 | | |
9502 | 9505 | | |
9503 | 9506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
129 | 137 | | |
130 | 138 | | |
131 | 139 | | |
| |||
484 | 492 | | |
485 | 493 | | |
486 | 494 | | |
487 | | - | |
| 495 | + | |
488 | 496 | | |
489 | 497 | | |
490 | 498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9662 | 9662 | | |
9663 | 9663 | | |
9664 | 9664 | | |
| 9665 | + | |
| 9666 | + | |
| 9667 | + | |
9665 | 9668 | | |
9666 | 9669 | | |
9667 | 9670 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9498 | 9498 | | |
9499 | 9499 | | |
9500 | 9500 | | |
| 9501 | + | |
| 9502 | + | |
| 9503 | + | |
9501 | 9504 | | |
9502 | 9505 | | |
9503 | 9506 | | |
| |||
0 commit comments