simple.yaml 678 B

1234567891011121314151617181920212223242526272829303132333435
  1. apiVersion: argoproj.io/v1alpha1
  2. kind: WorkflowTemplate
  3. metadata:
  4. name: simple
  5. spec:
  6. entrypoint: approve-flow
  7. arguments:
  8. parameters:
  9. - name: object
  10. value: {}
  11. templates:
  12. - name: approve-flow
  13. inputs:
  14. parameters:
  15. - name: object
  16. dag:
  17. tasks:
  18. - name: node
  19. template: approval
  20. - name: approval
  21. suspend: {}
  22. inputs:
  23. parameters:
  24. - name: approve
  25. default: '通过'
  26. enum:
  27. - '通过'
  28. - '拒绝'
  29. outputs:
  30. parameters:
  31. - name: approve
  32. valueFrom:
  33. supplied: {}