From 4437c4cf7e8fff013de2546a965e13651fc387f0 Mon Sep 17 00:00:00 2001 From: "Fabio M. Graetz, Ph.D" Date: Thu, 4 Jan 2024 22:09:29 +0100 Subject: [PATCH] Update flytepropeller/pkg/controller/nodes/task/k8s/task_exec_context.go Signed-off-by: Fabio M. Graetz, Ph.D. Signed-off-by: Fabio Graetz --- .../pkg/controller/nodes/task/k8s/task_exec_context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flytepropeller/pkg/controller/nodes/task/k8s/task_exec_context.go b/flytepropeller/pkg/controller/nodes/task/k8s/task_exec_context.go index e9230b081e..17bbce5398 100644 --- a/flytepropeller/pkg/controller/nodes/task/k8s/task_exec_context.go +++ b/flytepropeller/pkg/controller/nodes/task/k8s/task_exec_context.go @@ -59,7 +59,7 @@ func newTaskExecutionMetadata(tCtx pluginsCore.TaskExecutionMetadata, taskTmpl * } id := tCtx.GetSecurityContext().RunAs.ExecutionIdentity - if id != "" { + if len(id) > 0 { injectLabels[executionIdentityVariable] = id }