-
Hi, I have a WorkflowTemplate that is used from an argo-events sensor triggered after a S3 bucket notification. Now I have trouble to find the workflows when I search for an object key. Is there any way to set the title or description of a Workflow containing a parameter passed to the WorkflowTemplate? Thank you very much |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
You can directly obtain the workflow name from the environment variable: |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, I tried: apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: hello-world-template-global-arg
spec:
workflowMetadata:
annotations:
workflows.argoproj.io/description: "{{inputs.parameters.msg}}"
arguments:
parameters:
- name: msg
entrypoint: hello-world
templates:
- name: hello-world
inputs:
parameters:
- name: msg
value: ""
container:
image: busybox
command: [echo]
args: ["{{inputs.parameters.msg}}"] invoked it from the UI. I was hoping to see the message in the UI And |
Beta Was this translation helpful? Give feedback.
workflows.argoproj.io/description: "{{inputs.parameters.msg}}"
->workflows.argoproj.io/description: "{{workflow.parameters.msg}}"
It will work, but if you want to search it in UI, you need to add it to labels.