Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Now KafkaSource supports cloudevents Kafka Structured Encoding #884

Merged

Conversation

slinkydeveloper
Copy link
Contributor

Following spec: https://github.com/cloudevents/spec/blob/v1.0/kafka-protocol-binding.md#33-structured-content-mode

Also fixed bad extension name when dumping kafka headers to event extensions

Fixes #842

https://github.com/cloudevents/spec/blob/v1.0/kafka-protocol-binding.md#33-structured-content-mode)

Fixed bad extension name when dumping kafka headers to event extensions

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Feb 3, 2020
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 3, 2020
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
@@ -172,7 +172,7 @@ function kafka_setup() {
sed 's/namespace: .*/namespace: kafka/' ${STRIMZI_INSTALLATION_CONFIG_TEMPLATE} > ${STRIMZI_INSTALLATION_CONFIG}
kubectl apply -f "${STRIMZI_INSTALLATION_CONFIG}" -n kafka
kubectl apply -f ${KAFKA_INSTALLATION_CONFIG} -n kafka
kubectl apply -f ${KAFKA_TOPIC_INSTALLATION_CONFIG} -n kafka
# kubectl apply -f ${KAFKA_TOPIC_INSTALLATION_CONFIG} -n kafka
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left as a comment?

Copy link
Contributor Author

@slinkydeveloper slinkydeveloper Feb 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's deliberate: it's not needed anymore for running the tests but i wish to leave it for anybody who needs a quick test topic

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure somebody will be looking at knative e2e testing for basic strimzi configuration setup?

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-eventing-contrib-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
kafka/source/pkg/adapter/adapter.go 61.8% 65.4% 3.6

Copy link
Member

@matzew matzew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 3, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matzew, slinkydeveloper

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 3, 2020
@knative-prow-robot knative-prow-robot merged commit f23509c into knative:master Feb 3, 2020
@grantr
Copy link
Contributor

grantr commented Mar 5, 2020

Release notes followup: This was a new feature and should have had a release note blurb 😃

@slinkydeveloper
Copy link
Contributor Author

@grantr I'm sorry, should i add it directly here in the PR description?

@grantr
Copy link
Contributor

grantr commented Mar 6, 2020

@slinkydeveloper for future PRs, use the release note block in the PR template when making a user-visible change (the template has instructions). If everyone does that, we can auto-generate the release notes instead of waiting for a human to spend hours copying and pasting :)

@slinkydeveloper slinkydeveloper deleted the structured_encoding_source branch May 20, 2020 08:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test-and-release cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to deal with embedded CloudEvent message ?
7 participants