Skip to content

Commit 5c55756

Browse files
khrmknative-prow-robot
authored andcommitted
Update Eventing cronjob-source for Cloudevents (#1006)
Updates the documentation for cronjob-source sample to latest output. Output has changed due to the adoption of cloudevents.io by eventing.
1 parent 441dd41 commit 5c55756

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

eventing/samples/cronjob-source/README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,19 @@ kubectl logs -l serving.knative.dev/service=message-dumper -c user-container --s
7474

7575
You should see log lines showing the request headers and body from the source:
7676

77-
```json
78-
{
79-
"ID": "1543616460000180552-203",
80-
"EventTime": "2018-11-30T22:21:00.000186721Z",
81-
"Body": "{\"message\": \"Hello world!\"}"
82-
}
77+
```
78+
2019/03/14 14:28:06 Message Dumper received a message: POST / HTTP/1.1
79+
Host: message-dumper.default.svc.cluster.local
80+
Transfer-Encoding: chunked
81+
Accept-Encoding: gzip
82+
Ce-Cloudeventsversion: 0.1
83+
Ce-Eventid: 9790bf44-914a-4e66-af59-b43c06ccb73b
84+
Ce-Eventtime: 2019-03-14T14:28:00.005163309Z
85+
Ce-Eventtype: dev.knative.cronjob.event
86+
Ce-Source: CronJob
87+
...
88+
89+
{"message":"Hello world!"}
8390
```
8491

8592
You can also use [`kail`](https://github.com/boz/kail) instead of `kubectl logs`

0 commit comments

Comments
 (0)