File tree Expand file tree Collapse file tree 9 files changed +56
-70
lines changed Expand file tree Collapse file tree 9 files changed +56
-70
lines changed Original file line number Diff line number Diff line change @@ -125,22 +125,19 @@ You should see log lines showing the request headers and body of the event
125125message sent by the heartbeats source to the display function :
126126
127127` ` `
128- ☁️ CloudEvent: valid ✅
128+ ☁️ cloudevents.Event
129+ Validation: valid
129130Context Attributes,
130- SpecVersion: 0.2
131- Type: dev.knative.eventing.samples.heartbeat
132- Source: https://github.com/knative/eventing-contrib/cmd/heartbeats/#event-test/mypod
133- ID: cd1f5f24-12dd-489d-aff4-23302c6091fa
134- Time: 2019-04-04T08:38:24.833521851Z
135- ContentType: application/json
136- Extensions:
137- beats: true
138- heart: yes
139- the: 42
140- Transport Context,
141- URI: /
142- Host: event-display.default.svc.cluster.local
143- Method: POST
131+ specversion: 0.3
132+ type: dev.knative.eventing.samples.heartbeat
133+ source: https://knative.dev/eventing-contrib/cmd/heartbeats/#event-test/mypod
134+ id: 2b72d7bf-c38f-4a98-a433-608fbcdd2596
135+ time: 2019-10-18T15:23:20.809775386Z
136+ contenttype: application/json
137+ Extensions,
138+ beats: true
139+ heart: yes
140+ the: 42
144141Data,
145142 {
146143 "id": 2,
Original file line number Diff line number Diff line change 88 containers :
99 # This corresponds to a heartbeats image uri you build and publish,
1010 # e.g. gcr.io/[gcloud-project]/github.com/knative/eventing-contrib/cmd/heartbeats
11- - image : github.com/ knative/eventing-contrib/cmd/heartbeats
11+ - image : knative.dev /eventing-contrib/cmd/heartbeats
1212 name : heartbeats
1313 args :
1414 - --period=1
1818 - name : POD_NAMESPACE
1919 value : " event-test"
2020 sink :
21- apiVersion : serving.knative.dev/v1
21+ apiVersion : serving.knative.dev/v1alpha1
2222 kind : Service
2323 name : event-display
Original file line number Diff line number Diff line change @@ -77,18 +77,16 @@ kubectl logs -l serving.knative.dev/service=event-display -c user-container --si
7777You should see log lines showing the request headers and body from the source :
7878
7979` ` `
80- 2019/03/14 14:28:06 Message Dumper received a message: POST / HTTP/1.1
81- Host: event-display.default.svc.cluster.local
82- Transfer-Encoding: chunked
83- Accept-Encoding: gzip
84- Ce-Cloudeventsversion: 0.1
85- Ce-Eventid: 9790bf44-914a-4e66-af59-b43c06ccb73b
86- Ce-Eventtime: 2019-03-14T14:28:00.005163309Z
87- Ce-Eventtype: dev.knative.cronjob.event
88- Ce-Source: CronJob
89- ...
90-
91- {"message":"Hello world!"}
80+ ☁️ cloudevents.Event
81+ Validation: valid
82+ Context Attributes,
83+ specversion: 0.3
84+ type: dev.knative.cronjob.event
85+ source: /apis/v1/namespaces/default/cronjobsources/test-cronjob-source
86+ id: 7f88a38f-35f1-41f6-b72d-6b1af1d64e6e
87+ time: 2019-10-18T15:18:00.000829514Z
88+ Data,
89+ {"message":"Hello world!"}
9290` ` `
9391
9492You can also use [`kail`](https://github.com/boz/kail) instead of `kubectl logs`
Original file line number Diff line number Diff line change 4141 template :
4242 spec :
4343 containers :
44- - image : gcr.io/knative-releases/github.com/knative/ eventing-sources /cmd/event_display
44+ - image : gcr.io/knative-releases/knative.dev/ eventing-contrib /cmd/event_display
4545` ` `
4646
4747Enter the following command to create the service from ` service.yaml`:
@@ -126,7 +126,7 @@ spec:
126126 sink:
127127 apiVersion: serving.knative.dev/v1
128128 kind: Service
129- name: github-event-display
129+ name: github-message-dumper
130130` ` `
131131
132132Then, apply that yaml using `kubectl` :
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over
4747- Replicas
4848
4949 ``` yaml
50- apiVersion : kafka.strimzi.io/v1alpha1
50+ apiVersion : kafka.strimzi.io/v1beta1
5151 kind : KafkaTopic
5252 metadata :
5353 name : knative-demo-topic
@@ -109,7 +109,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over
109109 bootstrapServers: my-cluster-kafka-bootstrap.kafka:9092 #note the kafka namespace
110110 topics: knative-demo-topic
111111 sink:
112- apiVersion: serving.knative.dev/v1alpha1
112+ apiVersion: serving.knative.dev/v1
113113 kind: Service
114114 name: event-display
115115 ```
@@ -158,24 +158,21 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over
158158 ```
159159 $ kubectl logs --selector='serving.knative.dev/service=event-display' -c user-container
160160
161- ☁️ CloudEvent: valid ✅
162- Context Attributes,
163- SpecVersion: 0.2
164- Type: dev.knative.kafka.event
165- Source: dubee
166- ID: partition:0/offset:333
167- Time: 2019-03-19T22:32:06.535321588Z
168- ContentType: application/json
169- Extensions:
170- key:
171- Transport Context,
172- URI: /
173- Host: event-display.default.svc.cluster.local
174- Method: POST
175- Data,
176- {
177- "msg": "This is a test!"
178- }
161+ ☁️ cloudevents.Event
162+ Validation: valid
163+ Context Attributes,
164+ specversion: 0.3
165+ type: dev.knative.kafka.event
166+ source: dubee
167+ id: partition:0/offset:333
168+ time: 2019-10-18T15:23:20.809775386Z
169+ contenttype: application/json
170+ Extensions,
171+ key:
172+ Data,
173+ {
174+ "msg": "This is a test!"
175+ }
179176 ```
180177
181178## Teardown Steps
Original file line number Diff line number Diff line change 7070 cpu : 250m
7171 memory : 512Mi
7272 sink :
73- apiVersion : serving.knative.dev/v1alpha1
73+ apiVersion : serving.knative.dev/v1
7474 kind : Service
7575 name : event-display
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- apiVersion : kafka.strimzi.io/v1alpha1
15+ apiVersion : kafka.strimzi.io/v1beta1
1616kind : KafkaTopic
1717metadata :
1818 name : knative-demo-topic
Original file line number Diff line number Diff line change @@ -189,21 +189,15 @@ kubectl logs -l serving.knative.dev/service=event-display -c user-container
189189You should see log lines similar to :
190190
191191` ` `
192- ☁️ CloudEvent: valid ✅
192+ ☁️ cloudevents.Event
193+ Validation: valid
193194Context Attributes,
194- SpecVersion: 0.2
195- Type: dev.knative.apiserver.resource.add
196- Source: https://10.39.240.1:443
197- ID: 716d4536-3b92-4fbb-98d9-14bfcf94683f
198- Time: 2019-05-10T23:27:06.695575294Z
199- ContentType: application/json
200- Extensions:
201- knativehistory: default-broker-b7k2p-channel-z7mqq.default.svc.cluster.local
202- subject: /apis/v1/namespaces/default/events/busybox.159d7608e3a3572c
203- Transport Context,
204- URI: /
205- Host: auto-event-display.default.svc.cluster.local
206- Method: POST
195+ specversion: 0.3
196+ type: dev.knative.apiserver.resource.add
197+ source: https://10.96.0.1:443
198+ subject: /apis/v1/namespaces/default/events/busybox.15cec7980c1702d1
199+ id: 6ea84c37-c2b4-4687-866b-fb1b2c0fe969
200+ time: 2019-10-18T15:32:55.855413776Z
207201Data,
208202 {
209203 "apiVersion": "v1",
Original file line number Diff line number Diff line change 1010 - apiVersion : v1
1111 kind : Event
1212 sink :
13- apiVersion : eventing .knative.dev/v1alpha1
14- kind : Broker
15- name : default
13+ apiVersion : serving .knative.dev/v1alpha1
14+ kind : Service
15+ name : event-display
You can’t perform that action at this time.
0 commit comments