Replies: 3 comments 4 replies
-
Can podSpecPatch do the trick? |
Beta Was this translation helpful? Give feedback.
2 replies
-
There are several ways to pass info as pod label apparently, but how can I get/refer to that creator value from the workflow YAML? Using: {{workflow.labels.workflows.argoproj.io/creator}} does not work. |
Beta Was this translation helpful? Give feedback.
2 replies
-
ok, resolved. I might had a typo or something similar, but this worked for me: podMetadata:
labels:
myUser: "{{workflow.labels.workflows.argoproj.io/creator}}" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I would like to pass
creator
label, which automatically added to any workflow, to the workflow pods, so I can later capture/filter it with our logging system.Example from one of my workflows:
Labels:
workflows.argoproj.io/creator=system-serviceaccount-argo-dpeer
I tried using
podMetadata
label/annotations in my workflow YAML but none worked.Something like:
spec:
podMetadata:
annotations:
myUser: "{{workflow.creator}}"
Do you have an idea how can I do that?
Beta Was this translation helpful? Give feedback.
All reactions