Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions docs/eventing/samples/container-source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,22 +125,19 @@ You should see log lines showing the request headers and body of the event
message sent by the heartbeats source to the display function:

```
☁️ CloudEvent: valid ✅
☁️ cloudevents.Event
Validation: valid
Context Attributes,
SpecVersion: 0.2
Type: dev.knative.eventing.samples.heartbeat
Source: https://github.com/knative/eventing-contrib/cmd/heartbeats/#event-test/mypod
ID: cd1f5f24-12dd-489d-aff4-23302c6091fa
Time: 2019-04-04T08:38:24.833521851Z
ContentType: application/json
Extensions:
beats: true
heart: yes
the: 42
Transport Context,
URI: /
Host: event-display.default.svc.cluster.local
Method: POST
specversion: 0.3
type: dev.knative.eventing.samples.heartbeat
source: https://knative.dev/eventing-contrib/cmd/heartbeats/#event-test/mypod
id: 2b72d7bf-c38f-4a98-a433-608fbcdd2596
time: 2019-10-18T15:23:20.809775386Z
contenttype: application/json
Extensions,
beats: true
heart: yes
the: 42
Data,
{
"id": 2,
Expand Down
4 changes: 2 additions & 2 deletions docs/eventing/samples/container-source/heartbeats-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
containers:
# This corresponds to a heartbeats image uri you build and publish,
# e.g. gcr.io/[gcloud-project]/github.com/knative/eventing-contrib/cmd/heartbeats
- image: github.com/knative/eventing-contrib/cmd/heartbeats
- image: knative.dev/eventing-contrib/cmd/heartbeats
name: heartbeats
args:
- --period=1
Expand All @@ -18,6 +18,6 @@ spec:
- name: POD_NAMESPACE
value: "event-test"
sink:
apiVersion: serving.knative.dev/v1
apiVersion: serving.knative.dev/v1alpha1
kind: Service
name: event-display
22 changes: 10 additions & 12 deletions docs/eventing/samples/cronjob-source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,16 @@ kubectl logs -l serving.knative.dev/service=event-display -c user-container --si
You should see log lines showing the request headers and body from the source:

```
2019/03/14 14:28:06 Message Dumper received a message: POST / HTTP/1.1
Host: event-display.default.svc.cluster.local
Transfer-Encoding: chunked
Accept-Encoding: gzip
Ce-Cloudeventsversion: 0.1
Ce-Eventid: 9790bf44-914a-4e66-af59-b43c06ccb73b
Ce-Eventtime: 2019-03-14T14:28:00.005163309Z
Ce-Eventtype: dev.knative.cronjob.event
Ce-Source: CronJob
...

{"message":"Hello world!"}
☁️ cloudevents.Event
Validation: valid
Context Attributes,
specversion: 0.3
type: dev.knative.cronjob.event
source: /apis/v1/namespaces/default/cronjobsources/test-cronjob-source
id: 7f88a38f-35f1-41f6-b72d-6b1af1d64e6e
time: 2019-10-18T15:18:00.000829514Z
Data,
{"message":"Hello world!"}
```

You can also use [`kail`](https://github.com/boz/kail) instead of `kubectl logs`
Expand Down
4 changes: 2 additions & 2 deletions docs/eventing/samples/github-source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
template:
spec:
containers:
- image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display
- image: gcr.io/knative-releases/knative.dev/eventing-contrib/cmd/event_display
```

Enter the following command to create the service from `service.yaml`:
Expand Down Expand Up @@ -126,7 +126,7 @@ spec:
sink:
apiVersion: serving.knative.dev/v1
kind: Service
name: github-event-display
name: github-message-dumper
```

Then, apply that yaml using `kubectl`:
Expand Down
37 changes: 17 additions & 20 deletions docs/eventing/samples/kafka/source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over
- Replicas

```yaml
apiVersion: kafka.strimzi.io/v1alpha1
apiVersion: kafka.strimzi.io/v1beta1
kind: KafkaTopic
metadata:
name: knative-demo-topic
Expand Down Expand Up @@ -109,7 +109,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over
bootstrapServers: my-cluster-kafka-bootstrap.kafka:9092 #note the kafka namespace
topics: knative-demo-topic
sink:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1
kind: Service
name: event-display
```
Expand Down Expand Up @@ -158,24 +158,21 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over
```
$ kubectl logs --selector='serving.knative.dev/service=event-display' -c user-container

☁️ CloudEvent: valid ✅
Context Attributes,
SpecVersion: 0.2
Type: dev.knative.kafka.event
Source: dubee
ID: partition:0/offset:333
Time: 2019-03-19T22:32:06.535321588Z
ContentType: application/json
Extensions:
key:
Transport Context,
URI: /
Host: event-display.default.svc.cluster.local
Method: POST
Data,
{
"msg": "This is a test!"
}
☁️ cloudevents.Event
Validation: valid
Context Attributes,
specversion: 0.3
type: dev.knative.kafka.event
source: dubee
id: partition:0/offset:333
time: 2019-10-18T15:23:20.809775386Z
contenttype: application/json
Extensions,
key:
Data,
{
"msg": "This is a test!"
}
```

## Teardown Steps
Expand Down
2 changes: 1 addition & 1 deletion docs/eventing/samples/kafka/source/event-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ spec:
cpu: 250m
memory: 512Mi
sink:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1
kind: Service
name: event-display
2 changes: 1 addition & 1 deletion docs/eventing/samples/kafka/source/kafka-topic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: kafka.strimzi.io/v1alpha1
apiVersion: kafka.strimzi.io/v1beta1
kind: KafkaTopic
metadata:
name: knative-demo-topic
Expand Down
22 changes: 8 additions & 14 deletions docs/eventing/samples/kubernetes-event-source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,21 +189,15 @@ kubectl logs -l serving.knative.dev/service=event-display -c user-container
You should see log lines similar to:

```
☁️ CloudEvent: valid ✅
☁️ cloudevents.Event
Validation: valid
Context Attributes,
SpecVersion: 0.2
Type: dev.knative.apiserver.resource.add
Source: https://10.39.240.1:443
ID: 716d4536-3b92-4fbb-98d9-14bfcf94683f
Time: 2019-05-10T23:27:06.695575294Z
ContentType: application/json
Extensions:
knativehistory: default-broker-b7k2p-channel-z7mqq.default.svc.cluster.local
subject: /apis/v1/namespaces/default/events/busybox.159d7608e3a3572c
Transport Context,
URI: /
Host: auto-event-display.default.svc.cluster.local
Method: POST
specversion: 0.3
type: dev.knative.apiserver.resource.add
source: https://10.96.0.1:443
subject: /apis/v1/namespaces/default/events/busybox.15cec7980c1702d1
id: 6ea84c37-c2b4-4687-866b-fb1b2c0fe969
time: 2019-10-18T15:32:55.855413776Z
Data,
{
"apiVersion": "v1",
Expand Down
6 changes: 3 additions & 3 deletions docs/eventing/samples/kubernetes-event-source/k8s-events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ spec:
- apiVersion: v1
kind: Event
sink:
apiVersion: eventing.knative.dev/v1alpha1
kind: Broker
name: default
apiVersion: serving.knative.dev/v1alpha1
kind: Service
name: event-display