Skip to content

Commit

Permalink
[YUNIKORN-1954] remove KeyAllowPreemption (#667)
Browse files Browse the repository at this point in the history
Closes: #667

Signed-off-by: PoAn Yang <[email protected]>
  • Loading branch information
FrankYang0529 committed Sep 5, 2023
1 parent 14e86c5 commit 64eadca
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/common/si_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ func CreateTagsForTask(pod *v1.Pod) map[string]string {
// add Pod labels to Task tags
labelPrefix := common.DomainK8s + common.GroupLabel
for k, v := range pod.Labels {
if k == common.DomainYuniKorn+common.KeyAllowPreemption {
tags[common.DomainYuniKorn+common.KeyAllowPreemption] = v
} else {
tags[labelPrefix+k] = v
}
tags[labelPrefix+k] = v
}

return tags
Expand Down

0 comments on commit 64eadca

Please sign in to comment.