Skip to content

Commit fb3c0d1

Browse files
authored
Changed metadata.annotations to metadata.label to fix kueue.x-k8s.io/queue-name field, according to the official OSS Kueue documentation ([Labels and Annotations](https://kueue.sigs.k8s.io/docs/reference/labels-and-annotations/#kueuex-k8sioqueue-name)). (#2052)
1 parent b936c35 commit fb3c0d1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

batch/kueue-intro/job-team-a.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ kind: Job
1818
metadata:
1919
namespace: team-a # Job under team-a namespace
2020
generateName: sample-job-team-a-
21-
annotations:
21+
labels:
2222
kueue.x-k8s.io/queue-name: lq-team-a # Point to the LocalQueue
2323
spec:
2424
ttlSecondsAfterFinished: 60 # Job will be deleted after 60 seconds
@@ -45,4 +45,4 @@ spec:
4545
ephemeral-storage: "512Mi"
4646
nvidia.com/gpu: "1"
4747
restartPolicy: Never
48-
# [END gke_batch_kueue_intro_team_a_job]
48+
# [END gke_batch_kueue_intro_team_a_job]

batch/kueue-intro/job-team-b.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ kind: Job
1818
metadata:
1919
namespace: team-b # Job under team-b namespace
2020
generateName: sample-job-team-b-
21-
annotations:
21+
labels:
2222
kueue.x-k8s.io/queue-name: lq-team-b # Point to the LocalQueue
2323
spec:
2424
ttlSecondsAfterFinished: 60 # Job will be deleted after 60 seconds
@@ -45,4 +45,4 @@ spec:
4545
ephemeral-storage: "512Mi"
4646
nvidia.com/gpu: "1"
4747
restartPolicy: Never
48-
# [END gke_batch_kueue_intro_team_b_job]
48+
# [END gke_batch_kueue_intro_team_b_job]

0 commit comments

Comments
 (0)