Skip to content

Commit b92c6b7

Browse files
committed
WIP Update telemetry to use AetosCore struct and set Aetos image
1 parent f799c14 commit b92c6b7

7 files changed

Lines changed: 20 additions & 10 deletions

File tree

‎api/bases/core.openstack.org_openstackcontrolplanes.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19097,6 +19097,12 @@ spec:
1909719097
metricStorage:
1909819098
properties:
1909919099
aetos:
19100+
default:
19101+
apiTimeout: 60
19102+
passwordSelector:
19103+
aetosService: AetosPassword
19104+
secret: osp-secret
19105+
serviceUser: aetos
1910019106
properties:
1910119107
apiTimeout:
1910219108
default: 60

‎api/go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,4 @@ replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20250627150254-e9823e9
145145
replace github.com/cert-manager/cmctl/v2 => github.com/cert-manager/cmctl/v2 v2.3.0 //allow-merging
146146

147147
// TODO: remove once telemetry-operator Aetos PR merges and the dependency is bumped
148-
replace github.com/openstack-k8s-operators/telemetry-operator/api => github.com/vyzigold/telemetry-operator/api v0.0.0-20261112210139-b66bba9b9797
148+
replace github.com/openstack-k8s-operators/telemetry-operator/api => github.com/vyzigold/telemetry-operator/api v0.0.0-20261112220459-7d9c3b5426a0

‎api/go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4=
211211
github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
212212
github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY=
213213
github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28=
214-
github.com/vyzigold/telemetry-operator/api v0.0.0-20261112210139-b66bba9b9797 h1:1uwEmTr0/OROvK8eqOvMhICRnQfcKPRsHCd3u7C26Uo=
215-
github.com/vyzigold/telemetry-operator/api v0.0.0-20261112210139-b66bba9b9797/go.mod h1:yL+UkaUP4jg7DV2WwCCSBD6pZocvgRYumzVE69OfZ94=
214+
github.com/vyzigold/telemetry-operator/api v0.0.0-20261112220459-7d9c3b5426a0 h1:qtcj/1xHkek2BArrihEC/UkVVHwi5O+LMiy82/Buni8=
215+
github.com/vyzigold/telemetry-operator/api v0.0.0-20261112220459-7d9c3b5426a0/go.mod h1:yL+UkaUP4jg7DV2WwCCSBD6pZocvgRYumzVE69OfZ94=
216216
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
217217
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
218218
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

‎config/crd/bases/core.openstack.org_openstackcontrolplanes.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19097,6 +19097,12 @@ spec:
1909719097
metricStorage:
1909819098
properties:
1909919099
aetos:
19100+
default:
19101+
apiTimeout: 60
19102+
passwordSelector:
19103+
aetosService: AetosPassword
19104+
secret: osp-secret
19105+
serviceUser: aetos
1910019106
properties:
1910119107
apiTimeout:
1910219108
default: 60

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,4 @@ replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20250627150254-e9823e9
180180
replace github.com/cert-manager/cmctl/v2 => github.com/cert-manager/cmctl/v2 v2.3.0 //allow-merging
181181

182182
// TODO: remove once telemetry-operator Aetos PR merges and the dependency is bumped
183-
replace github.com/openstack-k8s-operators/telemetry-operator/api => github.com/vyzigold/telemetry-operator/api v0.0.0-20261112210139-b66bba9b9797
183+
replace github.com/openstack-k8s-operators/telemetry-operator/api => github.com/vyzigold/telemetry-operator/api v0.0.0-20261112220459-7d9c3b5426a0

‎go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4=
249249
github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
250250
github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY=
251251
github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28=
252-
github.com/vyzigold/telemetry-operator/api v0.0.0-20261112210139-b66bba9b9797 h1:1uwEmTr0/OROvK8eqOvMhICRnQfcKPRsHCd3u7C26Uo=
253-
github.com/vyzigold/telemetry-operator/api v0.0.0-20261112210139-b66bba9b9797/go.mod h1:yL+UkaUP4jg7DV2WwCCSBD6pZocvgRYumzVE69OfZ94=
252+
github.com/vyzigold/telemetry-operator/api v0.0.0-20261112220459-7d9c3b5426a0 h1:qtcj/1xHkek2BArrihEC/UkVVHwi5O+LMiy82/Buni8=
253+
github.com/vyzigold/telemetry-operator/api v0.0.0-20261112220459-7d9c3b5426a0/go.mod h1:yL+UkaUP4jg7DV2WwCCSBD6pZocvgRYumzVE69OfZ94=
254254
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
255255
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
256256
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

‎internal/openstack/telemetry.go‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,7 @@ func ReconcileTelemetry(ctx context.Context, instance *corev1beta1.OpenStackCont
683683
instance.Spec.Telemetry.Template.Ceilometer.CeilometerSpecCore.DeepCopyInto(&telemetry.Spec.Ceilometer.CeilometerSpecCore)
684684
instance.Spec.Telemetry.Template.Logging.DeepCopyInto(&telemetry.Spec.Logging)
685685
instance.Spec.Telemetry.Template.MetricStorage.MetricStorageSpecBase.DeepCopyInto(&telemetry.Spec.MetricStorage.MetricStorageSpecBase)
686-
// TODO: change to &telemetry.Spec.MetricStorage.Aetos.AetosCore once MetricStorageSection inlines MetricStorageSpec
687-
instance.Spec.Telemetry.Template.MetricStorage.Aetos.DeepCopyInto(&telemetry.Spec.MetricStorage.Aetos)
686+
instance.Spec.Telemetry.Template.MetricStorage.Aetos.DeepCopyInto(&telemetry.Spec.MetricStorage.Aetos.AetosCore)
688687
instance.Spec.Telemetry.Template.CloudKitty.CloudKittySpecBase.DeepCopyInto(&telemetry.Spec.CloudKitty.CloudKittySpecBase)
689688
instance.Spec.Telemetry.Template.CloudKitty.CloudKittyAPI.DeepCopyInto(&telemetry.Spec.CloudKitty.CloudKittyAPI.CloudKittyAPITemplateCore)
690689
instance.Spec.Telemetry.Template.CloudKitty.CloudKittyProc.DeepCopyInto(&telemetry.Spec.CloudKitty.CloudKittyProc.CloudKittyProcTemplateCore)
@@ -738,8 +737,7 @@ func ReconcileTelemetry(ctx context.Context, instance *corev1beta1.OpenStackCont
738737
telemetry.Spec.Ceilometer.MysqldExporterImage = *getImg(version.Status.ContainerImages.CeilometerMysqldExporterImage, &missingImageDefault)
739738
telemetry.Spec.CloudKitty.CloudKittyAPI.ContainerImage = *getImg(version.Status.ContainerImages.CloudKittyAPIImage, &missingImageDefault)
740739
telemetry.Spec.CloudKitty.CloudKittyProc.ContainerImage = *getImg(version.Status.ContainerImages.CloudKittyProcImage, &missingImageDefault)
741-
// TODO: propagate Aetos image once MetricStorageSection inlines MetricStorageSpec
742-
// telemetry.Spec.MetricStorage.Aetos.Image = *getImg(version.Status.ContainerImages.AetosImage, &missingImageDefault)
740+
telemetry.Spec.MetricStorage.Aetos.Image = *getImg(version.Status.ContainerImages.AetosImage, &missingImageDefault)
743741

744742
if telemetry.Spec.Ceilometer.Secret == "" {
745743
telemetry.Spec.Ceilometer.Secret = instance.Spec.Secret

0 commit comments

Comments
 (0)