简体   繁体   English

Argo WorkflowTemplate 自由格式输入参数

[英]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.

相关问题 Argo Workflow 未将输入参数传递给 WorkflowTemplate - Argo Workflow not passing input parameters to WorkflowTemplate 如何将一个 WorkflowTemplate 的工件从 argo 中的工作流传递到另一个 WorkflowTemplate - How to pass artifacts of one WorkflowTemplate to another WorkflowTemplate from a workflow in argo 无法将 output 参数从一个工作流模板传递到另一个工作流模板的工作流 - Unable to pass output parameters from one workflowTemplate to a workflow via another workflowTemplate argo 环境参数和 inheritance - argo env parameters and inheritance 如何将脚本模板的结果作为输入参数传递给 argo 工作流中 dag 中的另一个任务 - How to pass result of script template as an input parameter to another task in dag in argo workflows 如何访问作为输入工件传递到 argo 工作流中的脚本模板的文件内容 - How to access a content of file which is passed as input artifact to a script template in argo workflows 如何在一个容器镜像中运行多个文件并使用 output 作为 Argo 工作流中另一个容器的输入? - How to run multiple files in one container image and use the output as input in another container in Argo workflow? 使用 Argo 进行微服务部署 - Using Argo for microservices deployment Argo 工作流中的动态“扇入” - Dynamic "Fan In" in Argo Workflows Argo Kubernetes 有 Pod? - Argo Kubernetes has Pods?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM