12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- apiVersion: argoproj.io/v1alpha1
- kind: WorkflowTemplate
- metadata:
- name: signs
- spec:
- entrypoint: approve-flow
- arguments:
- parameters:
- - name: object
- value: {}
- templates:
- - name: approve-flow
- inputs:
- parameters:
- - name: object
- dag:
- tasks:
- - name: A
- template: approval
- - name: B
- template: approval
- depends: "A.Succeeded"
- when: "{{ tasks.A.outputs.parameters.approve }} == 通过"
- - name: C
- template: approval
- depends: "B.Succeeded"
- when: "{{ tasks.B.outputs.parameters.approve }} == 通过"
-
- - name: approval
- suspend: {}
- inputs:
- parameters:
- - name: approve
- default: '通过'
- enum:
- - '通过'
- - '拒绝'
- outputs:
- parameters:
- - name: approve
- valueFrom:
- supplied: {}
|