-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update sample source guide #2475
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
Conversation
| Ensure that the specific source subdirectory has been added to the injection portion of the `hack/update-codegen.sh` script. | ||
| ```patch | ||
| # Sources | ||
| +API_DIRS_SOURCES=(github/pkg camel/source/pkg kafka/source/pkg awssqs/pkg couchdb/source/pkg prometheus/pkg YourSourceHere/pkg) | ||
| -API_DIRS_SOURCES=(github/pkg camel/source/pkg kafka/source/pkg awssqs/pkg couchdb/source/pkg prometheus/pkg) | ||
| ``` | ||
| and | ||
| ```patch | ||
| -i knative.dev/eventing-contrib/camel/source/pkg/apis \ | ||
| - -i knative.dev/eventing-contrib/github/pkg/apis | ||
| + -i knative.dev/eventing-contrib/github/pkg/apis \ | ||
| + -i knative.dev/eventing-contrib/YourSourceHere/pkg/apis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is now explained in a separate page: https://github.com/knative/docs/pull/2475/files#diff-7f8a6b25a6b73452947bc5e926d1e6c9R1
| ## Reconcile/Create The Receive Adapter | ||
| As part of the source reconciliation, we have to create and deploy | ||
| (and update if necessary) the underlying receive adapter. The two | ||
| client sets used in this process is the `kubeClientSet` for the | ||
| Deployment tracking, and the `EventingClientSet` for the event | ||
| recording. | ||
| Verify the specified kubernetes resources are valid, and update the `Status` accordingly | ||
| Assemble the ReceiveAdapterArgs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section was actually duplicate of https://github.com/knative/docs/pull/2475/files#diff-df6286b13f3371b30a72bf3277b63a96R30
|
/assign @lberk |
n3wscott
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
tom24d
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts as new source contributor like me. This is my first review in my life so sorry if there is any inappropriate. Thanks!
docs/eventing/samples/writing-receive-adapter-source/05-receive-adapter.md
Show resolved
Hide resolved
Ok I learn why we say "assign" first... 😓 |
|
@n3wscott, this needs |
evankanderson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few formatting bits on the go code (which I'm only flagging because it's probably annoying for copy-paste), but otherwise great.
/approve
docs/eventing/samples/writing-receive-adapter-source/03-controller.md
Outdated
Show resolved
Hide resolved
docs/eventing/samples/writing-receive-adapter-source/03-controller.md
Outdated
Show resolved
Hide resolved
docs/eventing/samples/writing-receive-adapter-source/04-reconciler.md
Outdated
Show resolved
Hide resolved
…ller.md Co-authored-by: Evan Anderson <evan.k.anderson@gmail.com>
…ller.md Co-authored-by: Evan Anderson <evan.k.anderson@gmail.com>
|
@evankanderson I committed the suggestions you made. Thanks. mind reviewing again? |
|
/test pull-knative-docs-markdown-link-check |
1 similar comment
|
/test pull-knative-docs-markdown-link-check |
|
Thanks @aliok |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aliok, evankanderson, lberk, n3wscott 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 |
* Make sample source guide up-to-date * Docs for adding event source to eventing-contrib * Get rid of some whitespace * Fix broken markdown * Update docs/eventing/samples/writing-receive-adapter-source/03-controller.md Co-authored-by: Evan Anderson <evan.k.anderson@gmail.com> * Update docs/eventing/samples/writing-receive-adapter-source/03-controller.md Co-authored-by: Evan Anderson <evan.k.anderson@gmail.com> * Remove an empty line Co-authored-by: Evan Anderson <evan.k.anderson@gmail.com>
Fixes #issue-number or description of the problem the PR solves
Proposed Changes
eventing-contrib