Argo WorkflowTemplate自由格式输入参数

问题描述

参考:https://github.com/argoproj/argo/blob/master/examples/workflow-template/templates.yaml#L11

是否可以在WorkflowTemplate中将输入参数作为键值对集合传递?我要问的原因是似乎每次我们需要引入一个字段时,我们都必须更改模板并在其中定义字段的名称。因此,在Argo WorkflowTemplate输入参数中寻找自由格式支持。谢谢。

解决方法

Argo工作流程(和工作流程模板)do not currently support dictionary-like input parameters

有解决方法。例如,您可以将输入作为JSON编码的字符串传递。或者(如果输入特别大),则可以传递工件。