Skip to content

Commit c0cd133

Browse files
committed
feat: add label for prometheus query.
Signed-off-by: X1aoZEOuO <[email protected]>
1 parent 3c13ff3 commit c0cd133

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/controller/inference/service_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ func CreateServiceIfNotExists(ctx context.Context, k8sClient client.Client, Sche
439439
ObjectMeta: metav1.ObjectMeta{
440440
Name: svcName,
441441
Namespace: service.Namespace,
442+
Labels: modelLabels(model[0]),
442443
// For activator service, we can ignore it if serverless config is not enabled.
443444
Annotations: activatorAnnotations(model[0]),
444445
},

0 commit comments

Comments
 (0)