我在下面为 Argo 编写了一个工作流程,其中包含一个(基于容器的)模板和一个 DAG。DAG 应该将可变数量的值传递给模板的输入参数。
这可能吗?
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: dag-
spec:
entrypoint: do-something
templates:
- name: something
inputs:
parameters:
- name: values
container:
image: some-image
args: ["{{inputs.parameters.values}}"] # This field must be converted to ["1", "3", "6", "9"]
- name: do-something
dag:
tasks:
- name: do-it
template: something
arguments:
parameters:
- name: values
value: [1, 3, 6, 9]