File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed
code-samples/eventing/bookstore-sample-app/db/bookstore-eda Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change 1
- apiVersion : eventing.knative.dev/v1
2
- kind : Trigger
3
- metadata :
4
- name : event-display-trigger
5
- spec :
6
- broker : broker
7
- filter :
8
- attributes :
9
- type : sentiment-analysis-request
10
- subscriber :
11
- ref :
12
- apiVersion : serving.knative.dev/v1
13
- kind : Service
14
- name : sentiment-analysis-app
15
-
16
-
17
- ---
18
-
1
+ # This Trigger subscribes to the Broker and filters events based on the type and badwordfilter attribute.
2
+ # Those comments that contain insults are filtered out by the badwordfilter attribute and they will be redirected to the event-display Service.
19
3
apiVersion : eventing.knative.dev/v1
20
4
kind : Trigger
21
5
metadata :
24
8
broker : broker
25
9
filter :
26
10
attributes :
27
- type : knative.sampleapp.sentiment.response
11
+ type : moderated-comment
12
+ badwordfilter : bad
28
13
subscriber :
29
14
ref :
30
15
apiVersion : serving.knative.dev/v1
31
16
kind : Service
32
17
name : event-display
33
18
34
-
You can’t perform that action at this time.
0 commit comments