-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcatalogworkflow.yaml
73 lines (73 loc) · 2.32 KB
/
catalogworkflow.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: catalog-workflow-step-
spec:
entrypoint: catalogprocess
arguments:
parameters:
- name: catalogname
value: test-workflow-name
templates:
- name: catalogparsingtemplate
inputs:
parameters:
- name: step-param-1
container:
image: deepaksinghvi/catalogwf:latest
command: [catalogwf, "parsecatalog"]
args: [ "{{inputs.parameters.step-param-1}}" ]
- name: ruleexecutiontemplate
inputs:
parameters:
- name: step-param-2
container:
image: deepaksinghvi/catalogwf:latest
command: [ catalogwf, "executerules" ]
args: [ "{{inputs.parameters.step-param-2}}" ]
- name: catalogapprovaltemplate
inputs:
parameters:
- name: step-param-3
container:
image: deepaksinghvi/catalogwf:latest
command: [ catalogwf, "approvalflow" ]
args: [ "{{inputs.parameters.step-param-3}}" ]
- name: cataloghierarchytemplate
inputs:
parameters:
- name: step-param-4
container:
image: deepaksinghvi/catalogwf:latest
command: [ catalogwf, "buildhierarchy" ]
args: [ "{{inputs.parameters.step-param-4}}" ]
- name: catalogprocess
dag:
tasks:
- name: Parsing
template: catalogparsingtemplate
arguments:
parameters:
- name: step-param-1
value: "{{workflow.parameters.catalogname}}"
- name: RuleExecution
dependencies: [Parsing]
template: ruleexecutiontemplate
arguments:
parameters:
- name: step-param-2
value: "{{workflow.parameters.catalogname}}"
- name: CatalogApproval
dependencies: [RuleExecution]
template: catalogapprovaltemplate
arguments:
parameters:
- name: step-param-3
value: "{{workflow.parameters.catalogname}}"
- name: CatalogBuildHierarchy
dependencies: [CatalogApproval]
template: cataloghierarchytemplate
arguments:
parameters:
- name: step-param-4
value: "{{workflow.parameters.catalogname}}"