Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

Commit f09cae8

Browse files
committed
Fix serverName to include namePrefix applied by Kustomize
Kustomize does not automatically replace string values in serverName field. Additionally, Kustomize applies namePrefix to Service names. Service name in config: metrics After Kustomize namePrefix: openstack-lightspeed-operator-metrics DNS name: openstack-lightspeed-operator-metrics.openstack-lightspeed-operator-system.svc Changed from: metrics.system.svc (incorrect placeholder) Changed to: openstack-lightspeed-operator-metrics.openstack-lightspeed-operator-system.svc This ensures TLS verification will succeed when Prometheus validates the certificate's SAN against the serverName. Fixes issue raised by omkarjoshi0304 in PR review.
1 parent 845c723 commit f09cae8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎config/prometheus/monitor.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
1717
tlsConfig:
1818
caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
19-
serverName: metrics.system.svc
19+
serverName: openstack-lightspeed-operator-metrics.openstack-lightspeed-operator-system.svc
2020
selector:
2121
matchLabels:
2222
control-plane: controller-manager

0 commit comments

Comments
 (0)