12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- apiVersion: argoproj.io/v1alpha1
- kind: Workflow
- metadata:
- generateName: front_json-
- spec:
- entrypoint: front_json-flow
- templates:
- - name: front_json-flow
- dag:
- tasks:
- - name: A
- template: approval
- - name: B
- template: approval
- depends: "A.Succeeded"
- when: "{{ tasks.A.outputs.parameters.front_json }} == 通过"
- - name: C
- template: approval
- depends: "A.Succeeded"
- when: "{{ tasks.A.outputs.parameters.front_json }} == 通过"
- - name: D
- template: approval
- depends: "B.Succeeded && C.Succeeded"
- when: "{{ tasks.B.outputs.parameters.front_json }} == 通过 && {{ tasks.C.outputs.parameters.front_json }} == 通过"
- - name: E
- template: approval
- depends: "B.Succeeded && C.Succeeded"
- when: "{{ tasks.B.outputs.parameters.front_json }} == 通过 && {{ tasks.C.outputs.parameters.front_json }} == 通过"
- - name: F
- template: approval
- depends: "D.Succeeded && E.Succeeded"
- when: "{{ tasks.D.outputs.parameters.front_json }} == 通过 || {{ tasks.E.outputs.parameters.front_json }} == 通过"
- - name: approval
- suspend: {}
- inputs:
- parameters:
- - name: front_json
- default: '通过'
- enum:
- - '通过'
- - '拒绝'
- description: >-
- 请选择要执行的操作
- outputs:
- parameters:
- - name: front_json
- valueFrom:
- supplied: {}
|