[Bug] grafana-alerting service creates a race condition for OpenShift clusters using oauth-proxy #1050
Labels
bug
Something isn't working
needs triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Describe the bug
Many OpenShift deployments use the oauth-proxy sidecar to provide authentication to Grafana. They add the service annotation
service.alpha.openshift.io/serving-cert-secret-name: grafana-instance
which tells OpenShift to create a TLS certificate for the service. Because the change below adds the annotation to both services, the certificate will sometimes be created for thegrafana-alert
service instead of thegrafana
service which means the TLS cert will be invalid (its named for the dns of the service that its created for).Version
4.10.0
To Reproduce
the grafana resource created by ^ looks like
Suspect component/Location where the bug might be occurring
bug introduced by b1f3635
Screenshots
If applicable, add screenshots to help explain your problem.
Runtime (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: