@@ -90,6 +90,11 @@ type MetricStorageSpec struct {
9090 // +kubebuilder:default=ctlplane
9191 DataplaneNetwork * infranetworkv1.NetNameStr `json:"dataplaneNetwork"`
9292
93+ // NetworkAttachments is a list of NetworkAttachment resource names to expose the services to the given network
94+ // +kubebuilder:validation:Optional
95+ // +listType=atomic
96+ NetworkAttachments []string `json:"networkAttachments,omitempty"`
97+
9398 // MonitoringStack allows to define a metric storage with
9499 // options supported by Red Hat
95100 // +kubebuilder:validation:Optional
@@ -127,10 +132,13 @@ type MetricStorageStatus struct {
127132 // then the controller has not processed the latest changes injected by
128133 // the openstack-operator in the top-level CR (e.g. the ContainerImage)
129134 ObservedGeneration int64 `json:"observedGeneration,omitempty"`
135+ // NetworkAttachments status of the Prometheus pods
136+ NetworkAttachments map [string ]string `json:"networkAttachments,omitempty"`
130137}
131138
132139//+kubebuilder:object:root=true
133140//+kubebuilder:subresource:status
141+ //+kubebuilder:printcolumn:name="NetworkAttachments",type="string",JSONPath=".status.networkAttachments",description="NetworkAttachments"
134142//+kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[0].status",description="Status"
135143//+kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[0].message",description="Message"
136144
0 commit comments