forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.yaml
104 lines (101 loc) · 3.37 KB
/
tasks.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
apiVersion: kit/v1
kind: Tasks
metadata:
annotations:
help: |
Install `kit` by following https://github.com/alexec/kit#install.
Run `kit up` to start argo.
- `env PROFILE=mysql kit up` to start with MySQL.
- `env PROFILE=plugins ARGO_EXECUTOR_PLUGINS=true kit up` to start with plugins.
- `env PROFILE=sso ARGO_AUTH_MODE=sso kit up` to start with SSO.
The app will be up-and-running between 15s and 1m later (if hot compiled or cold).
Any changes made to the source code will be automatically recompiled and the app restarted, typically within a few seconds.
name: argo-workflows
spec:
tasks:
- name: go-deps
command: go mod download
mutex: deps
- name: static-files
command: make server/static/files.go STATIC_FILES=false
dependencies: go-deps
- command: go build -v ./...
name: go-build
dependencies: static-files go-deps
- name: cluster-info
command: kubectl cluster-info
- name: docker-ps
command: docker ps
- name: install
command: sh -c "make install PROFILE=$PROFILE"
env:
- PROFILE=minimal
dependencies: cluster-info go-deps
watch: manifests
- command: make ./dist/workflow-controller
dependencies: go-build
name: build-controller
- name: port-forward
command: ./hack/port-forward.sh
ports: 9000
dependencies: install
- name: controller
command: ./dist/workflow-controller
dependencies: install build-controller port-forward
env:
- ARGO_EXECUTOR_PLUGINS=false
- ARGO_NAMESPACE=argo
- ARGO_NAMESPACED=true
- ARGO_MANAGED_NAMESPACE=argo
- ARGO_LOG_LEVEL=info
- ARGO_REMOVE_PVC_PROTECTION_FINALIZER=true
- ARGO_PROGRESS_PATCH_TICK_DURATION=7s
- DEFAULT_REQUEUE_TIME=1s
- LEADER_ELECTION_IDENTITY=local
- ALWAYS_OFFLOAD_NODE_STATUS=false
- OFFLOAD_NODE_STATUS_TTL=30s
- WORKFLOW_GC_PERIOD=30s
- UPPERIO_DB_DEBUG=1
- ARCHIVED_WORKFLOW_GC_PERIOD=30s
ports: "9090"
watch: cmd/workflow-controller config errors persist pkg util workflow
- name: build-argo
command: make ./dist/argo
dependencies: go-build
env:
- STATIC_FILES=false
watch: cmd/argo config errors persist pkg util server workflow
- name: server
command: ./dist/argo server
dependencies: build-argo controller port-forward
env:
- ARGO_X_FRAME_OPTIONS=SAMEORIGIN
- ARGO_SECURE=false
- ARGO_NAMESPACE=argo
- ARGO_NAMESPACED=true
- ARGO_LOG_LEVEL=info
- ARGO_AUTH_MODE=hybrid
- ARGO_MANAGED_NAMESPACE=argo
- UPPERIO_DB_DEBUG=1
ports: "2746"
- name: ui-deps
command: yarn --cwd ui install
mutex: deps
- name: ui-build
command: yarn --cwd ui build
dependencies: ui-deps
- name: ui
command: yarn --cwd ui start
dependencies: ui-deps server
ports: "8080"
- name: executor
command: make argoexec-image
dependencies: docker-ps
watch: cmd/argoexec config errors pkg util workflow
- name: example
command: kubectl create -f examples/hello-world.yaml
dependencies: controller
- name: build
dependencies: build-controller build-argo ui-build
- name: up
dependencies: controller server executor ui example