Version updates and CE update (#1915)

This commit is contained in:
Matthias Wessendorf 2019-10-21 23:56:25 +02:00 committed by Knative Prow Robot
parent 093675762a
commit dbae4d819c
9 changed files with 56 additions and 70 deletions

View File

@ -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: message sent by the heartbeats source to the display function:
``` ```
☁️ CloudEvent: valid ✅ ☁️ cloudevents.Event
Validation: valid
Context Attributes, Context Attributes,
SpecVersion: 0.2 specversion: 0.3
Type: dev.knative.eventing.samples.heartbeat type: dev.knative.eventing.samples.heartbeat
Source: https://github.com/knative/eventing-contrib/cmd/heartbeats/#event-test/mypod source: https://knative.dev/eventing-contrib/cmd/heartbeats/#event-test/mypod
ID: cd1f5f24-12dd-489d-aff4-23302c6091fa id: 2b72d7bf-c38f-4a98-a433-608fbcdd2596
Time: 2019-04-04T08:38:24.833521851Z time: 2019-10-18T15:23:20.809775386Z
ContentType: application/json contenttype: application/json
Extensions: Extensions,
beats: true beats: true
heart: yes heart: yes
the: 42 the: 42
Transport Context,
URI: /
Host: event-display.default.svc.cluster.local
Method: POST
Data, Data,
{ {
"id": 2, "id": 2,

View File

@ -8,7 +8,7 @@ spec:
containers: containers:
# This corresponds to a heartbeats image uri you build and publish, # This corresponds to a heartbeats image uri you build and publish,
# e.g. gcr.io/[gcloud-project]/github.com/knative/eventing-contrib/cmd/heartbeats # 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 name: heartbeats
args: args:
- --period=1 - --period=1
@ -18,6 +18,6 @@ spec:
- name: POD_NAMESPACE - name: POD_NAMESPACE
value: "event-test" value: "event-test"
sink: sink:
apiVersion: serving.knative.dev/v1 apiVersion: serving.knative.dev/v1alpha1
kind: Service kind: Service
name: event-display name: event-display

View File

@ -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: 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 ☁️ cloudevents.Event
Host: event-display.default.svc.cluster.local Validation: valid
Transfer-Encoding: chunked Context Attributes,
Accept-Encoding: gzip specversion: 0.3
Ce-Cloudeventsversion: 0.1 type: dev.knative.cronjob.event
Ce-Eventid: 9790bf44-914a-4e66-af59-b43c06ccb73b source: /apis/v1/namespaces/default/cronjobsources/test-cronjob-source
Ce-Eventtime: 2019-03-14T14:28:00.005163309Z id: 7f88a38f-35f1-41f6-b72d-6b1af1d64e6e
Ce-Eventtype: dev.knative.cronjob.event time: 2019-10-18T15:18:00.000829514Z
Ce-Source: CronJob Data,
... {"message":"Hello world!"}
{"message":"Hello world!"}
``` ```
You can also use [`kail`](https://github.com/boz/kail) instead of `kubectl logs` You can also use [`kail`](https://github.com/boz/kail) instead of `kubectl logs`

View File

@ -41,7 +41,7 @@ spec:
template: template:
spec: spec:
containers: 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`: Enter the following command to create the service from `service.yaml`:
@ -126,7 +126,7 @@ spec:
sink: sink:
apiVersion: serving.knative.dev/v1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
name: github-event-display name: github-message-dumper
``` ```
Then, apply that yaml using `kubectl`: Then, apply that yaml using `kubectl`:

View File

@ -47,7 +47,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over
- Replicas - Replicas
```yaml ```yaml
apiVersion: kafka.strimzi.io/v1alpha1 apiVersion: kafka.strimzi.io/v1beta1
kind: KafkaTopic kind: KafkaTopic
metadata: metadata:
name: knative-demo-topic name: knative-demo-topic
@ -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 bootstrapServers: my-cluster-kafka-bootstrap.kafka:9092 #note the kafka namespace
topics: knative-demo-topic topics: knative-demo-topic
sink: sink:
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
name: event-display name: event-display
``` ```
@ -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 $ kubectl logs --selector='serving.knative.dev/service=event-display' -c user-container
☁️ CloudEvent: valid ✅ ☁️ cloudevents.Event
Context Attributes, Validation: valid
SpecVersion: 0.2 Context Attributes,
Type: dev.knative.kafka.event specversion: 0.3
Source: dubee type: dev.knative.kafka.event
ID: partition:0/offset:333 source: dubee
Time: 2019-03-19T22:32:06.535321588Z id: partition:0/offset:333
ContentType: application/json time: 2019-10-18T15:23:20.809775386Z
Extensions: contenttype: application/json
key: Extensions,
Transport Context, key:
URI: / Data,
Host: event-display.default.svc.cluster.local {
Method: POST "msg": "This is a test!"
Data, }
{
"msg": "This is a test!"
}
``` ```
## Teardown Steps ## Teardown Steps

View File

@ -70,6 +70,6 @@ spec:
cpu: 250m cpu: 250m
memory: 512Mi memory: 512Mi
sink: sink:
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
name: event-display name: event-display

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
apiVersion: kafka.strimzi.io/v1alpha1 apiVersion: kafka.strimzi.io/v1beta1
kind: KafkaTopic kind: KafkaTopic
metadata: metadata:
name: knative-demo-topic name: knative-demo-topic

View File

@ -189,21 +189,15 @@ kubectl logs -l serving.knative.dev/service=event-display -c user-container
You should see log lines similar to: You should see log lines similar to:
``` ```
☁️ CloudEvent: valid ✅ ☁️ cloudevents.Event
Validation: valid
Context Attributes, Context Attributes,
SpecVersion: 0.2 specversion: 0.3
Type: dev.knative.apiserver.resource.add type: dev.knative.apiserver.resource.add
Source: https://10.39.240.1:443 source: https://10.96.0.1:443
ID: 716d4536-3b92-4fbb-98d9-14bfcf94683f subject: /apis/v1/namespaces/default/events/busybox.15cec7980c1702d1
Time: 2019-05-10T23:27:06.695575294Z id: 6ea84c37-c2b4-4687-866b-fb1b2c0fe969
ContentType: application/json time: 2019-10-18T15:32:55.855413776Z
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
Data, Data,
{ {
"apiVersion": "v1", "apiVersion": "v1",

View File

@ -10,6 +10,6 @@ spec:
- apiVersion: v1 - apiVersion: v1
kind: Event kind: Event
sink: sink:
apiVersion: eventing.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1alpha1
kind: Broker kind: Service
name: default name: event-display