-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
Copy pathdag.yaml
48 lines (48 loc) · 1.05 KB
/
dag.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# The following workflow executes a diamond workflow
#
# A
# / \
# B C
# \ /
# D
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: workflow-template-dag-diamond-
spec:
entrypoint: diamond
templates:
- name: diamond
dag:
tasks:
- name: A
templateRef:
name: workflow-template-print-message
template: print-message
arguments:
parameters:
- name: message
value: A
- name: B
depends: "A"
templateRef:
name: workflow-template-print-message
template: print-message
arguments:
parameters:
- name: message
value: B
- name: C
depends: "A"
templateRef:
name: workflow-template-inner-dag
template: inner-diamond
- name: D
depends: "B && C"
templateRef:
name: workflow-template-print-message
template: print-message
arguments:
parameters:
- name: message
value: D