Siyali Gupta

Siyali Gupta started this conversation 9 months ago.

How can one define global parameters in Argo Workflows?

“What is the detailed process for defining global parameters in Argo Workflows, including any necessary setup, configuration steps, and examples of how to reference these parameters within different workflow templates?”

codecool

Posted 9 months ago

Defining global parameters in Argo Workflows allows you to pass values that can be accessed across different templates within a workflow. Here’s a detailed process to achieve this:

Step 1: Define the Workflow with Global Parameters Create a workflow YAML file and define the global parameters in the spec.arguments.parameters section.

Step 2: Reference Global Parameters in Templates You can reference the global parameters within different templates using the {{workflow.parameters.parameter_name}} syntax.

Step 3: Submit the Workflow Use the Argo CLI to submit the workflow with the global parameters.