File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const (
1313
1414 // Pod Groups
1515 PodGrouperWarning = "PodGrouperWarning"
16- TopOwnerMetadataKey = "run.ai /top-owner-metadata"
16+ TopOwnerMetadataKey = "kai.scheduler /top-owner-metadata"
1717
1818 // Annotations
1919 PodGroupAnnotationForPod = "pod-group-name"
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import (
1818 "k8s.io/apimachinery/pkg/runtime"
1919 "sigs.k8s.io/controller-runtime/pkg/client/fake"
2020
21+ commonconsts "github.com/NVIDIA/KAI-scheduler/pkg/common/constants"
2122 "github.com/NVIDIA/KAI-scheduler/pkg/podgrouper/podgroup"
2223 "github.com/NVIDIA/KAI-scheduler/pkg/podgrouper/podgrouper"
2324)
@@ -185,7 +186,7 @@ func Test_Podgrouper_Full_Flow(t *testing.T) {
185186 },
186187 expectedMetadata : & podgroup.Metadata {
187188 Annotations : map [string ]string {
188- "run.ai/top-owner-metadata" : `name: pod-job
189+ commonconsts . TopOwnerMetadataKey : `name: pod-job
189190uid: ""
190191group: ""
191192version: v1
@@ -270,7 +271,7 @@ kind: Pod
270271 },
271272 expectedMetadata : & podgroup.Metadata {
272273 Annotations : map [string ]string {
273- "run.ai/top-owner-metadata" : `name: argo-pod
274+ commonconsts . TopOwnerMetadataKey : `name: argo-pod
274275uid: uid-pod
275276group: ""
276277version: v1
You can’t perform that action at this time.
0 commit comments