forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
continue-on-fail.yaml
37 lines (34 loc) · 907 Bytes
/
continue-on-fail.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
# Example on specifying parallelism on the outer workflow and limiting the number of its
# children workflows to be run at the same time.
#
# If the parallelism of A is 1, the four steps of seq-step will run sequentially.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: continue-on-fail-
spec:
entrypoint: workflow-ignore
parallelism: 1
templates:
- name: workflow-ignore
steps:
- - name: A
template: whalesay
- - name: B
template: whalesay
- name: C
template: intentional-fail
continueOn:
failed: true
- - name: D
template: whalesay
- name: whalesay
container:
image: docker/whalesay:latest
command: [cowsay]
args: ["hello world"]
- name: intentional-fail
container:
image: alpine:latest
command: [sh, -c]
args: ["echo intentional failure; exit 1"]