Skip to content

Commit 4d11a08

Browse files
committed
Add labels for the lightspeed-app-server service
Add labels for the lightspeed-app-server service that allows it to be discovered by metrics ScrapeConfig
1 parent e770335 commit 4d11a08

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

internal/controller/lcore_reconciler.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,12 @@ func reconcileService(h *common_helper.Helper, ctx context.Context, instance *ap
424424
}
425425
svc.Spec.Type = corev1.ServiceTypeClusterIP
426426

427+
if svc.Labels == nil {
428+
svc.Labels = make(map[string]string)
429+
}
430+
svc.Labels["metrics"] = "enabled"
431+
svc.Labels["service"] = OpenStackLightspeedAppServerServiceName
432+
427433
// Set service-ca annotation for TLS certificate provisioning
428434
if svc.Annotations == nil {
429435
svc.Annotations = make(map[string]string)

0 commit comments

Comments
 (0)