Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knative Source HTTP Adapter for Broker/Trigger #6236

Conversation

nachtmaar
Copy link
Contributor

@nachtmaar nachtmaar commented Nov 7, 2019

Description

Changes proposed in this pull request:

  • Implement an HTTP Adapter to receive CloudEvents on a HTTP endpoint
  • Endpoint is CloudEvents 1.0 compatible, declines CE events lower than 1.0
  • Implement Readiness Probe on /healthz

Credits also go to @k15r

Related issue(s)

#6159

Due to an open issue in knative/eventing#2052, we need to patch vendor :/

antoineco and others added 30 commits October 30, 2019 13:16
Co-Author: Marco Bebway <marco.bebway@sap.com>
Kyma ships only with that version.
We know this is ugly, but there is currently no other way
see knative/eventing#2052
…source-ce-1-0-http-adapter' into 6159-implement-an-applicationsource-ce-1-0-http-adapter
- Move main_test from main package to adapter package since sharedmain is cmd is not directly tested anymore
- Add encoding to tabletest
- Check error code and error response
@nachtmaar nachtmaar requested a review from a user November 11, 2019 11:28
@nachtmaar nachtmaar changed the title 6159 implement an applicationsource ce 1 0 http adapter Knative Source HTTP Adapter for Broker/Trigger Nov 11, 2019
components/event-sources/Makefile Outdated Show resolved Hide resolved
components/event-sources/Makefile Outdated Show resolved Hide resolved
components/event-sources/adapter/http/adapter.go Outdated Show resolved Hide resolved
components/event-sources/adapter/http/adapter.go Outdated Show resolved Hide resolved
components/event-sources/cmd/http-adapter/main.go Outdated Show resolved Hide resolved
components/event-sources/cmd/http-adapter/main.go Outdated Show resolved Hide resolved
components/event-sources/Makefile Outdated Show resolved Hide resolved
Copy link
Contributor

@antoineco antoineco left a comment

Choose a reason for hiding this comment

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

Approved, with just one nit left on my side. Nice job!
Also, don't forget to add the name of the binary generated by make to .gitignore :)

components/event-sources/Makefile Outdated Show resolved Hide resolved
Copy link
Contributor

@bszwarc bszwarc left a comment

Choose a reason for hiding this comment

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

Review added 🎁

components/event-sources/adapter/http/README.md Outdated Show resolved Hide resolved
components/event-sources/adapter/http/README.md Outdated Show resolved Hide resolved
components/event-sources/adapter/http/README.md Outdated Show resolved Hide resolved
components/event-sources/adapter/http/README.md Outdated Show resolved Hide resolved
components/event-sources/adapter/http/README.md Outdated Show resolved Hide resolved
components/event-sources/adapter/http/README.md Outdated Show resolved Hide resolved
components/event-sources/adapter/http/README.md Outdated Show resolved Hide resolved
components/event-sources/adapter/http/README.md Outdated Show resolved Hide resolved
components/event-sources/adapter/http/README.md Outdated Show resolved Hide resolved
Co-Authored-By: Barbara Szwarc <barbara.m.szwarc@gmail.com>
Copy link
Contributor

@bszwarc bszwarc left a comment

Choose a reason for hiding this comment

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

One more thing :)

components/event-sources/adapter/http/README.md Outdated Show resolved Hide resolved
Co-Authored-By: Barbara Szwarc <barbara.m.szwarc@gmail.com>
Copy link
Contributor

@montaro montaro left a comment

Choose a reason for hiding this comment

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

Thanks for the good work!
Please check the tiny 3 comments.

Co-Authored-By: Ahmed ElRefaey Hamouda <ahmed.rifaey@gmail.com>
@nachtmaar nachtmaar merged commit 3148e54 into kyma-project:master Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/eventing Issues or PRs related to eventing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants