Argo WorkflowTemplate free form input parameters

11/12/2020

Picked up as a reference: https://github.com/argoproj/argo/blob/master/examples/workflow-template/templates.yaml#L11

Is it possible to pass input parameters as key-value pair collection in WorkflowTemplate ? The reason I am asking is that it seems like every time we need to introduce a field, we have to change the template and define name of the field in there. So looking for a free form support in Argo WorkflowTemplate input parameters. Thank you.

-- colossal
argo-workflows
freeform
kubernetes

1 Answer

11/12/2020

Argo Workflows (and WorkflowTemplates) do not currently support dictionary-like input parameters.

There are work-arounds. For example, you could pass your inputs as a JSON-encoded string. Or (if the inputs are particularly large), you could pass an artifact.

-- crenshaw-dev
Source: StackOverflow