This is an automated email from the ASF dual-hosted git repository.
payang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git
The following commit(s) were added to refs/heads/master by this push:
new 64eadca9 [YUNIKORN-1954] remove KeyAllowPreemption (#667)
64eadca9 is described below
commit 64eadca94a0a75c760149e5d71958c7a572d3dfc
Author: PoAn Yang <[email protected]>
AuthorDate: Tue Sep 5 23:28:32 2023 +0800
[YUNIKORN-1954] remove KeyAllowPreemption (#667)
Closes: #667
Signed-off-by: PoAn Yang <[email protected]>
---
pkg/common/si_helper.go | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/pkg/common/si_helper.go b/pkg/common/si_helper.go
index abc0e3b7..a0638aa6 100644
--- a/pkg/common/si_helper.go
+++ b/pkg/common/si_helper.go
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]