diff --git a/controllers/reconcilers/grafana/grafana_service_reconciler.go b/controllers/reconcilers/grafana/grafana_service_reconciler.go index 92d119782..3508de34e 100644 --- a/controllers/reconcilers/grafana/grafana_service_reconciler.go +++ b/controllers/reconcilers/grafana/grafana_service_reconciler.go @@ -49,7 +49,8 @@ func (r *ServiceReconciler) Reconcile(ctx context.Context, cr *v1beta1.Grafana, // try to assign the admin url if !cr.PreferIngress() { - status.AdminUrl = fmt.Sprintf("%v://%v.%v:%d", getGrafanaServerProtocol(cr), service.Name, cr.Namespace, + // .svc suffix needed for automatic openshift certificates: https://docs.openshift.com/container-platform/4.17/security/certificates/service-serving-certificate.html#add-service-certificate_service-serving-certificate + status.AdminUrl = fmt.Sprintf("%v://%v.%v.svc:%d", getGrafanaServerProtocol(cr), service.Name, cr.Namespace, int32(GetGrafanaPort(cr))) }