Skip to content
This repository was archived by the owner on Aug 2, 2019. It is now read-only.

Commit 9866266

Browse files
authored
Merge pull request #42 from matzew/trigger_broker
Broker/Trigger usage
2 parents e4ef2a8 + 70b88c9 commit 9866266

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

knative-kubecon/eventing/010-channel.yaml

-9
This file was deleted.

knative-kubecon/eventing/030-subscription.yaml knative-kubecon/eventing/010-trigger.yaml

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
apiVersion: eventing.knative.dev/v1alpha1
2-
kind: Subscription
2+
kind: Trigger
33
metadata:
4-
name: testevents-subscription
4+
name: my-service-trigger
55
namespace: myproject
66
spec:
7-
channel:
8-
apiVersion: eventing.knative.dev/v1alpha1
9-
kind: Channel
10-
name: testchannel
7+
filter:
8+
sourceAndType:
9+
type: dev.knative.source.heartbeats
1110
subscriber:
1211
ref:
1312
apiVersion: serving.knative.dev/v1alpha1

knative-kubecon/eventing/021-source.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ apiVersion: sources.eventing.knative.dev/v1alpha1
22
kind: ContainerSource
33
metadata:
44
name: heartbeat-event-source
5+
namespace: myproject
56
spec:
67
image: docker.io/matzew/kube-heartbeat
78
args:
89
- '--label="<3"'
910
- '--period=400'
1011
sink:
1112
apiVersion: eventing.knative.dev/v1alpha1
12-
kind: Channel
13-
name: testchannel
13+
kind: Broker
14+
name: default

0 commit comments

Comments
 (0)