Skip to content

Commit c2df747

Browse files
committed
[WIP] Add Aetos to MetricStorage
Generated-By: Claude-Code claude-opus-4-6
1 parent 018fb02 commit c2df747

35 files changed

Lines changed: 1609 additions & 13 deletions

‎api/bases/telemetry.openstack.org_autoscalings.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,11 @@ spec:
352352
description: PasswordSelectors - Selectors to identify the service
353353
from the Secret
354354
properties:
355+
aetosService:
356+
default: AetosPassword
357+
description: AetosService - Selector to get the aetos service
358+
password from the Secret
359+
type: string
355360
aodhService:
356361
default: AodhPassword
357362
description: AodhService - Selector to get the aodh service

‎api/bases/telemetry.openstack.org_ceilometers.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ spec:
230230
description: PasswordSelectors - Selectors to identify the service
231231
from the Secret
232232
properties:
233+
aetosService:
234+
default: AetosPassword
235+
description: AetosService - Selector to get the aetos service
236+
password from the Secret
237+
type: string
233238
aodhService:
234239
default: AodhPassword
235240
description: AodhService - Selector to get the aodh service password

‎api/bases/telemetry.openstack.org_cloudkitties.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,11 @@ spec:
626626
description: PasswordsSelectors - Selectors to identify the ServiceUser
627627
password from the Secret
628628
properties:
629+
aetosService:
630+
default: AetosPassword
631+
description: AetosService - Selector to get the aetos service
632+
password from the Secret
633+
type: string
629634
aodhService:
630635
default: AodhPassword
631636
description: AodhService - Selector to get the aodh service password

‎api/bases/telemetry.openstack.org_cloudkittyapis.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,11 @@ spec:
305305
description: PasswordsSelectors - Selectors to identify the ServiceUser
306306
password from the Secret
307307
properties:
308+
aetosService:
309+
default: AetosPassword
310+
description: AetosService - Selector to get the aetos service
311+
password from the Secret
312+
type: string
308313
aodhService:
309314
default: AodhPassword
310315
description: AodhService - Selector to get the aodh service password

‎api/bases/telemetry.openstack.org_cloudkittyprocs.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ spec:
114114
description: PasswordsSelectors - Selectors to identify the ServiceUser
115115
password from the Secret
116116
properties:
117+
aetosService:
118+
default: AetosPassword
119+
description: AetosService - Selector to get the aetos service
120+
password from the Secret
121+
type: string
117122
aodhService:
118123
default: AodhPassword
119124
description: AodhService - Selector to get the aodh service password

‎api/bases/telemetry.openstack.org_metricstorages.yaml‎

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,40 @@ spec:
5252
spec:
5353
description: MetricStorageSpec defines the desired state of MetricStorage
5454
properties:
55+
aetosImage:
56+
type: string
57+
aetosTls:
58+
description: |-
59+
AetosTLS - Parameters related to the Aetos API TLS. The certificates for
60+
the internal and public endpoints are provided by the OpenStackControlplane.
61+
properties:
62+
api:
63+
description: API tls type which encapsulates for API services
64+
properties:
65+
internal:
66+
description: Internal GenericService - holds the secret for
67+
the internal endpoint
68+
properties:
69+
secretName:
70+
description: SecretName - holding the cert, key for the
71+
service
72+
type: string
73+
type: object
74+
public:
75+
description: Public GenericService - holds the secret for
76+
the public endpoint
77+
properties:
78+
secretName:
79+
description: SecretName - holding the cert, key for the
80+
service
81+
type: string
82+
type: object
83+
type: object
84+
caBundleSecretName:
85+
description: CaBundleSecretName - holding the CA certs in a pre-created
86+
bundle file
87+
type: string
88+
type: object
5589
alertmanagerTls:
5690
description: |-
5791
TLS - Parameters related to the Alertmanager TLS.
@@ -65,6 +99,14 @@ spec:
6599
description: SecretName - holding the cert, key for the service
66100
type: string
67101
type: object
102+
auth:
103+
description: Auth - authentication settings for keystone integration
104+
properties:
105+
applicationCredentialSecret:
106+
description: ApplicationCredentialSecret - secret name for application
107+
credential
108+
type: string
109+
type: object
68110
customMonitoringStack:
69111
description: |-
70112
CustomMonitoringStack allows to deploy a custom monitoring
@@ -1866,6 +1908,33 @@ spec:
18661908
OpenStackLightspeedNamespace defines the namespace where OpenStack Lightspeed
18671909
is deployed. Used for discovering Lightspeed metrics services.
18681910
type: string
1911+
passwordSelector:
1912+
default:
1913+
aetosService: AetosPassword
1914+
description: PasswordSelectors - Selectors to identify the service
1915+
from the Secret
1916+
properties:
1917+
aetosService:
1918+
default: AetosPassword
1919+
description: AetosService - Selector to get the aetos service
1920+
password from the Secret
1921+
type: string
1922+
aodhService:
1923+
default: AodhPassword
1924+
description: AodhService - Selector to get the aodh service password
1925+
from the Secret
1926+
type: string
1927+
ceilometerService:
1928+
default: CeilometerPassword
1929+
description: CeilometerService - Selector to get the ceilometer
1930+
service password from the Secret
1931+
type: string
1932+
cloudKittyService:
1933+
default: CloudKittyPassword
1934+
description: CloudKittyService - Selector to get the CloudKitty
1935+
service password from the Secret
1936+
type: string
1937+
type: object
18691938
prometheusClientCertSecret:
18701939
description: |-
18711940
PrometheusClientCertSecret - Secret containing client cert and key
@@ -1887,10 +1956,26 @@ spec:
18871956
description: SecretName - holding the cert, key for the service
18881957
type: string
18891958
type: object
1959+
secret:
1960+
default: osp-secret
1961+
description: Secret containing OpenStack password information for
1962+
aetos
1963+
type: string
1964+
serviceUser:
1965+
default: aetos
1966+
description: ServiceUser - optional username used for this service
1967+
to register in keystone
1968+
type: string
1969+
required:
1970+
- secret
18901971
type: object
18911972
status:
18921973
description: MetricStorageStatus defines the observed state of MetricStorage
18931974
properties:
1975+
applicationCredentialSecret:
1976+
description: ApplicationCredentialSecret - the AC secret MetricStorage
1977+
is currently consuming
1978+
type: string
18941979
conditions:
18951980
description: Conditions provide observations of the operational state
18961981
of a API resource.

‎api/bases/telemetry.openstack.org_telemetries.yaml‎

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@ spec:
355355
description: PasswordSelectors - Selectors to identify the
356356
service from the Secret
357357
properties:
358+
aetosService:
359+
default: AetosPassword
360+
description: AetosService - Selector to get the aetos
361+
service password from the Secret
362+
type: string
358363
aodhService:
359364
default: AodhPassword
360365
description: AodhService - Selector to get the aodh service
@@ -621,6 +626,11 @@ spec:
621626
description: PasswordSelectors - Selectors to identify the service
622627
from the Secret
623628
properties:
629+
aetosService:
630+
default: AetosPassword
631+
description: AetosService - Selector to get the aetos service
632+
password from the Secret
633+
type: string
624634
aodhService:
625635
default: AodhPassword
626636
description: AodhService - Selector to get the aodh service
@@ -1283,6 +1293,11 @@ spec:
12831293
description: PasswordsSelectors - Selectors to identify the ServiceUser
12841294
password from the Secret
12851295
properties:
1296+
aetosService:
1297+
default: AetosPassword
1298+
description: AetosService - Selector to get the aetos service
1299+
password from the Secret
1300+
type: string
12861301
aodhService:
12871302
default: AodhPassword
12881303
description: AodhService - Selector to get the aodh service
@@ -1516,6 +1531,40 @@ spec:
15161531
metricStorage:
15171532
description: MetricStorage - Parameters related to the metricStorage
15181533
properties:
1534+
aetosImage:
1535+
type: string
1536+
aetosTls:
1537+
description: |-
1538+
AetosTLS - Parameters related to the Aetos API TLS. The certificates for
1539+
the internal and public endpoints are provided by the OpenStackControlplane.
1540+
properties:
1541+
api:
1542+
description: API tls type which encapsulates for API services
1543+
properties:
1544+
internal:
1545+
description: Internal GenericService - holds the secret
1546+
for the internal endpoint
1547+
properties:
1548+
secretName:
1549+
description: SecretName - holding the cert, key for
1550+
the service
1551+
type: string
1552+
type: object
1553+
public:
1554+
description: Public GenericService - holds the secret
1555+
for the public endpoint
1556+
properties:
1557+
secretName:
1558+
description: SecretName - holding the cert, key for
1559+
the service
1560+
type: string
1561+
type: object
1562+
type: object
1563+
caBundleSecretName:
1564+
description: CaBundleSecretName - holding the CA certs in
1565+
a pre-created bundle file
1566+
type: string
1567+
type: object
15191568
alertmanagerTls:
15201569
description: |-
15211570
TLS - Parameters related to the Alertmanager TLS.
@@ -1529,6 +1578,14 @@ spec:
15291578
description: SecretName - holding the cert, key for the service
15301579
type: string
15311580
type: object
1581+
auth:
1582+
description: Auth - authentication settings for keystone integration
1583+
properties:
1584+
applicationCredentialSecret:
1585+
description: ApplicationCredentialSecret - secret name for
1586+
application credential
1587+
type: string
1588+
type: object
15321589
customMonitoringStack:
15331590
description: |-
15341591
CustomMonitoringStack allows to deploy a custom monitoring
@@ -3350,6 +3407,33 @@ spec:
33503407
OpenStackLightspeedNamespace defines the namespace where OpenStack Lightspeed
33513408
is deployed. Used for discovering Lightspeed metrics services.
33523409
type: string
3410+
passwordSelector:
3411+
default:
3412+
aetosService: AetosPassword
3413+
description: PasswordSelectors - Selectors to identify the service
3414+
from the Secret
3415+
properties:
3416+
aetosService:
3417+
default: AetosPassword
3418+
description: AetosService - Selector to get the aetos service
3419+
password from the Secret
3420+
type: string
3421+
aodhService:
3422+
default: AodhPassword
3423+
description: AodhService - Selector to get the aodh service
3424+
password from the Secret
3425+
type: string
3426+
ceilometerService:
3427+
default: CeilometerPassword
3428+
description: CeilometerService - Selector to get the ceilometer
3429+
service password from the Secret
3430+
type: string
3431+
cloudKittyService:
3432+
default: CloudKittyPassword
3433+
description: CloudKittyService - Selector to get the CloudKitty
3434+
service password from the Secret
3435+
type: string
3436+
type: object
33533437
prometheusClientCertSecret:
33543438
description: |-
33553439
PrometheusClientCertSecret - Secret containing client cert and key
@@ -3371,6 +3455,18 @@ spec:
33713455
description: SecretName - holding the cert, key for the service
33723456
type: string
33733457
type: object
3458+
secret:
3459+
default: osp-secret
3460+
description: Secret containing OpenStack password information
3461+
for aetos
3462+
type: string
3463+
serviceUser:
3464+
default: aetos
3465+
description: ServiceUser - optional username used for this service
3466+
to register in keystone
3467+
type: string
3468+
required:
3469+
- secret
33743470
type: object
33753471
nodeSelector:
33763472
additionalProperties:

‎api/v1beta1/conditions.go‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ const (
8686
// KSMCreateServiceReadyCondition Status=True condition when k8s service for the KSM created ok
8787
KSMCreateServiceReadyCondition condition.Type = "KSMCreateServiceReady"
8888

89+
// AetosReadyCondition Status=True condition which indicates if the Aetos sidecar is configured and operational
90+
AetosReadyCondition condition.Type = "AetosReady"
91+
92+
// AetosKeystoneServiceReadyCondition Status=True condition which indicates if the Aetos Keystone service is registered
93+
AetosKeystoneServiceReadyCondition condition.Type = "AetosKeystoneServiceReady"
94+
95+
// AetosKeystoneEndpointReadyCondition Status=True condition which indicates if the Aetos Keystone endpoint is registered
96+
AetosKeystoneEndpointReadyCondition condition.Type = "AetosKeystoneEndpointReady"
97+
8998
// MysqldExporter conditions
9099
MysqldExporterDBReadyCondition condition.Type = "MysqldExporterDBReady"
91100

@@ -188,6 +197,24 @@ const (
188197
ScrapeConfigUnableToOwnMessage = "Error occured when trying to own %s"
189198

190199
//
200+
//
201+
// AetosReady condition messages
202+
//
203+
// AetosReadyInitMessage
204+
AetosReadyInitMessage = "Aetos sidecar not started"
205+
206+
// AetosReadyImageMissingMessage
207+
AetosReadyImageMissingMessage = "Aetos container image is not set. Ensure the MetricStorage webhook is running and the AetosImage field is defaulted."
208+
209+
// AetosReadyErrorMessage
210+
AetosReadyErrorMessage = "Aetos sidecar error occurred: %s"
211+
212+
// AetosKeystoneServiceReadyInitMessage
213+
AetosKeystoneServiceReadyInitMessage = "Aetos Keystone service not started"
214+
215+
// AetosKeystoneEndpointReadyInitMessage
216+
AetosKeystoneEndpointReadyInitMessage = "Aetos Keystone endpoint not started"
217+
191218
// PrometheusReady condition messages
192219
//
193220
// PrometheusReadyInitMessage

0 commit comments

Comments
 (0)