@@ -46,65 +46,70 @@ import (
4646)
4747
4848type Names struct {
49- Namespace string
50- OpenStackControlplaneName types.NamespacedName
51- OpenStackVersionName types.NamespacedName
52- OpenStackVersionName2 types.NamespacedName
53- KeystoneAPIName types.NamespacedName
54- MemcachedName types.NamespacedName
55- MemcachedCertName types.NamespacedName
56- CinderName types.NamespacedName
57- ManilaName types.NamespacedName
58- GlanceName types.NamespacedName
59- NeutronName types.NamespacedName
60- HorizonName types.NamespacedName
61- HeatName types.NamespacedName
62- NovaName types.NamespacedName
63- TelemetryName types.NamespacedName
64- WatcherName types.NamespacedName
65- DBName types.NamespacedName
66- DBCertName types.NamespacedName
67- DBCell1Name types.NamespacedName
68- DBCell1CertName types.NamespacedName
69- RabbitMQName types.NamespacedName
70- RabbitMQCertName types.NamespacedName
71- RabbitMQCell1Name types.NamespacedName
72- RabbitMQCell1CertName types.NamespacedName
73- RabbitMQNotificationsName types.NamespacedName
74- RabbitMQNotificationsCertName types.NamespacedName
75- NoVNCProxyCell1CertPublicRouteName types.NamespacedName
76- NoVNCProxyCell1CertPublicSvcName types.NamespacedName
77- NoVNCProxyCell1CertVencryptName types.NamespacedName
78- ServiceAccountName types.NamespacedName
79- RoleName types.NamespacedName
80- RoleBindingName types.NamespacedName
81- RootCAPublicName types.NamespacedName
82- RootCAInternalName types.NamespacedName
83- RootCAOvnName types.NamespacedName
84- RootCALibvirtName types.NamespacedName
85- SelfSignedIssuerName types.NamespacedName
86- CustomIssuerName types.NamespacedName
87- CustomServiceCertSecretName types.NamespacedName
88- CABundleName types.NamespacedName
89- OpenStackClientName types.NamespacedName
90- OVNNorthdName types.NamespacedName
91- OVNNorthdCertName types.NamespacedName
92- OVNControllerName types.NamespacedName
93- OVNControllerCertName types.NamespacedName
94- OVNDbServerNBName types.NamespacedName
95- OVNDbServerSBName types.NamespacedName
96- OVNMetricsCertName types.NamespacedName
97- NeutronOVNCertName types.NamespacedName
98- OpenStackTopology []types.NamespacedName
99- WatcherCertPublicRouteName types.NamespacedName
100- WatcherCertPublicSvcName types.NamespacedName
101- WatcherCertInternalName types.NamespacedName
49+ Namespace string
50+ OpenStackControlplaneName types.NamespacedName
51+ OpenStackDataplaneNodeSetNoNodesName types.NamespacedName
52+ OpenStackVersionName types.NamespacedName
53+ OpenStackVersionName2 types.NamespacedName
54+ KeystoneAPIName types.NamespacedName
55+ MemcachedName types.NamespacedName
56+ MemcachedCertName types.NamespacedName
57+ CinderName types.NamespacedName
58+ ManilaName types.NamespacedName
59+ GlanceName types.NamespacedName
60+ NeutronName types.NamespacedName
61+ HorizonName types.NamespacedName
62+ HeatName types.NamespacedName
63+ NovaName types.NamespacedName
64+ TelemetryName types.NamespacedName
65+ WatcherName types.NamespacedName
66+ DBName types.NamespacedName
67+ DBCertName types.NamespacedName
68+ DBCell1Name types.NamespacedName
69+ DBCell1CertName types.NamespacedName
70+ RabbitMQName types.NamespacedName
71+ RabbitMQCertName types.NamespacedName
72+ RabbitMQCell1Name types.NamespacedName
73+ RabbitMQCell1CertName types.NamespacedName
74+ RabbitMQNotificationsName types.NamespacedName
75+ RabbitMQNotificationsCertName types.NamespacedName
76+ NoVNCProxyCell1CertPublicRouteName types.NamespacedName
77+ NoVNCProxyCell1CertPublicSvcName types.NamespacedName
78+ NoVNCProxyCell1CertVencryptName types.NamespacedName
79+ ServiceAccountName types.NamespacedName
80+ RoleName types.NamespacedName
81+ RoleBindingName types.NamespacedName
82+ RootCAPublicName types.NamespacedName
83+ RootCAInternalName types.NamespacedName
84+ RootCAOvnName types.NamespacedName
85+ RootCALibvirtName types.NamespacedName
86+ SelfSignedIssuerName types.NamespacedName
87+ CustomIssuerName types.NamespacedName
88+ CustomServiceCertSecretName types.NamespacedName
89+ CABundleName types.NamespacedName
90+ OpenStackClientName types.NamespacedName
91+ OVNNorthdName types.NamespacedName
92+ OVNNorthdCertName types.NamespacedName
93+ OVNControllerName types.NamespacedName
94+ OVNControllerCertName types.NamespacedName
95+ OVNDbServerNBName types.NamespacedName
96+ OVNDbServerSBName types.NamespacedName
97+ OVNMetricsCertName types.NamespacedName
98+ NeutronOVNCertName types.NamespacedName
99+ OpenStackTopology []types.NamespacedName
100+ WatcherCertPublicRouteName types.NamespacedName
101+ WatcherCertPublicSvcName types.NamespacedName
102+ WatcherCertInternalName types.NamespacedName
102103}
103104
104105func CreateNames (openstackControlplaneName types.NamespacedName ) Names {
105106 return Names {
106107 Namespace : openstackControlplaneName .Namespace ,
107108 OpenStackControlplaneName : openstackControlplaneName ,
109+ OpenStackDataplaneNodeSetNoNodesName : types.NamespacedName {
110+ Namespace : openstackControlplaneName .Namespace ,
111+ Name : "openstack-dataplane-nodeset-no-nodes" ,
112+ },
108113 OpenStackVersionName : types.NamespacedName {
109114 Namespace : openstackControlplaneName .Namespace ,
110115 Name : openstackControlplaneName .Name , // same name as controlplane
@@ -392,6 +397,8 @@ func CreateOpenStackControlPlane(name types.NamespacedName, spec map[string]inte
392397}
393398
394399// Build OpenStackDataPlaneNodeSetSpec struct with empty `Nodes` list
400+ // NOTE: The function seems improperly named, given that the nodeset is
401+ // in fact given a node in the spec.
395402func DefaultDataPlaneNoNodeSetSpec (tlsEnabled bool ) map [string ]interface {} {
396403 spec := map [string ]interface {}{
397404 "preProvisioned" : true ,
@@ -401,8 +408,7 @@ func DefaultDataPlaneNoNodeSetSpec(tlsEnabled bool) map[string]interface{} {
401408 },
402409 "ansibleSSHPrivateKeySecret" : "dataplane-ansible-ssh-private-key-secret" ,
403410 },
404- "nodes" : map [string ]interface {}{},
405- "servicesOverride" : []string {},
411+ "nodes" : map [string ]interface {}{},
406412 }
407413 if tlsEnabled {
408414 spec ["tlsEnabled" ] = true
0 commit comments