Skip to content

Commit

Permalink
Set selector and label specific to platform service
Browse files Browse the repository at this point in the history
Signed-off-by: Moti Asayag <[email protected]>
  • Loading branch information
masayag committed Jan 1, 2024
1 parent f0d9068 commit a8caa98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/platform/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit a8caa98

Please sign in to comment.