[英]Argo WorkflowTemplate free form input parameters
Picked up as a reference: https://github.com/argoproj/argo/blob/master/examples/workflow-template/templates.yaml#L11拾起作为参考: 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
?是否可以在
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.
所以在 Argo WorkflowTemplate 输入参数中寻找自由形式的支持。 Thank you.
谢谢你。
Argo Workflows (and WorkflowTemplates) do not currently support dictionary-like input parameters . Argo 工作流(和工作流模板)目前不支持类似字典的输入参数。
There are work-arounds.有变通办法。 For example, you could pass your inputs as a JSON-encoded string.
例如,您可以将输入作为 JSON 编码的字符串传递。 Or (if the inputs are particularly large), you could pass an artifact.
或者(如果输入特别大),您可以传递一个工件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.