forked from numaproj/numaflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2-even-odd-pipeline.yaml
57 lines (57 loc) · 1.16 KB
/
2-even-odd-pipeline.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
apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
name: even-odd
spec:
vertices:
- name: in
source:
http: {}
- name: even-or-odd
scale:
min: 1
udf:
container:
# Tell the input number is even or odd, see https://github.com/numaproj/numaflow-go/tree/main/pkg/mapper/examples/even_odd
image: quay.io/numaio/numaflow-go/map-even-odd:stable
- name: even-sink
scale:
min: 1
sink:
# A simple log printing sink
log: {}
- name: odd-sink
scale:
min: 1
sink:
log: {}
- name: number-sink
scale:
min: 1
sink:
log: {}
edges:
- from: in
to: even-or-odd
- from: even-or-odd
to: even-sink
conditions:
tags:
operator: or
values:
- even-tag
- from: even-or-odd
to: odd-sink
conditions:
tags:
operator: or
values:
- odd-tag
- from: even-or-odd
to: number-sink
conditions:
tags:
operator: or
values:
- odd-tag
- even-tag