From 2a6a3a67390b926c27bb88d069af6b7fa1d01c52 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. --- .../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 e9230b081ee..17bbce53985 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 }