From c42a4a02fd9ba30c2af7d2c42b1a7b5916140fb4 Mon Sep 17 00:00:00 2001 From: Fabio Graetz Date: Fri, 22 Dec 2023 15:08:47 +0000 Subject: [PATCH] Add option in K8s plugin config to inject user identity into pod labels Signed-off-by: Fabio Graetz --- .../go/tasks/pluginmachinery/flytek8s/config/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flyteplugins/go/tasks/pluginmachinery/flytek8s/config/config.go b/flyteplugins/go/tasks/pluginmachinery/flytek8s/config/config.go index 55f9cfa68c1..643c37fb435 100644 --- a/flyteplugins/go/tasks/pluginmachinery/flytek8s/config/config.go +++ b/flyteplugins/go/tasks/pluginmachinery/flytek8s/config/config.go @@ -199,6 +199,9 @@ type K8sPluginConfig struct { // SendObjectEvents indicates whether to send k8s object events in TaskExecutionEvent updates (similar to kubectl get events). SendObjectEvents bool `json:"send-object-events" pflag:",If true, will send k8s object events in TaskExecutionEvent updates."` + + // InjectExecutionIdentity indicates whether to inject the execution identity (if set in the workflow) into the pod as a label. + InjectExecutionIdentity bool `json:"inject-execution-identity" pflag:",If true, will inject execution identity into the pod as a label."` } // FlyteCoPilotConfig specifies configuration for the Flyte CoPilot system. FlyteCoPilot, allows running flytekit-less containers