From a8caa98f447b8df3be8737b6ab0cf520765e3c71 Mon Sep 17 00:00:00 2001 From: Moti Asayag Date: Mon, 1 Jan 2024 18:19:08 +0200 Subject: [PATCH] Set selector and label specific to platform service Signed-off-by: Moti Asayag --- controllers/platform/k8s.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/platform/k8s.go b/controllers/platform/k8s.go index c21b200fe..c0e0517a5 100644 --- a/controllers/platform/k8s.go +++ b/controllers/platform/k8s.go @@ -136,7 +136,7 @@ func createDeployment(ctx context.Context, client client.Client, platform *opera replicas := ps.GetReplicaCount() lbl := map[string]string{ - workflowproj.LabelApp: platform.Name, + workflowproj.LabelApp: ps.GetServiceName(), } dataDeploySpec := appsv1.DeploymentSpec{ Selector: &metav1.LabelSelector{ @@ -196,7 +196,7 @@ func createDeployment(ctx context.Context, client client.Client, platform *opera func createService(ctx context.Context, client client.Client, platform *operatorapi.SonataFlowPlatform, ps services.Platform) error { lbl := map[string]string{ - workflowproj.LabelApp: platform.Name, + workflowproj.LabelApp: ps.GetServiceName(), } dataSvcSpec := corev1.ServiceSpec{ Ports: []corev1.ServicePort{