Skip to content

Conversation

@aliok
Copy link
Member

@aliok aliok commented May 18, 2020

Fixes #issue-number or description of the problem the PR solves

Proposed Changes

  • Validate the sample source guide
  • Fix the references, file names, etc.
  • Adaptions for SinkBinding changes Sink binding knative-extensions/sample-source#40
  • Create a separate page for instructions on how to make the source part of eventing-contrib

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label May 18, 2020
@aliok aliok changed the title Source guide Update sample source guide May 18, 2020
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 18, 2020
Comment on lines -86 to -100
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
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines -70 to -80
## 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
Copy link
Member Author

Choose a reason for hiding this comment

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

@aliok
Copy link
Member Author

aliok commented May 18, 2020

/assign @lberk
Mind reviewing?

Copy link
Contributor

@n3wscott n3wscott 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 May 18, 2020
Copy link
Contributor

@tom24d tom24d left a 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!

@tom24d
Copy link
Contributor

tom24d commented May 18, 2020

Thoughts as new source contributor like me. This is my first review in my life so sorry if there is any inappropriate. Thanks!

Ok I learn why we say "assign" first... 😓

@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label May 20, 2020
@aliok
Copy link
Member Author

aliok commented May 20, 2020

@n3wscott, this needs lgtm again

Copy link
Member

@evankanderson evankanderson left a 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

aliok and others added 3 commits May 27, 2020 11:16
…ller.md

Co-authored-by: Evan Anderson <evan.k.anderson@gmail.com>
…ller.md

Co-authored-by: Evan Anderson <evan.k.anderson@gmail.com>
@aliok
Copy link
Member Author

aliok commented May 27, 2020

@evankanderson I committed the suggestions you made. Thanks.

mind reviewing again?

@aliok
Copy link
Member Author

aliok commented May 27, 2020

/test pull-knative-docs-markdown-link-check

1 similar comment
@aliok
Copy link
Member Author

aliok commented May 27, 2020

/test pull-knative-docs-markdown-link-check

@lberk
Copy link
Member

lberk commented May 27, 2020

Thanks @aliok
/lgtm
/approve

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

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot merged commit fbf41f0 into knative:master May 27, 2020
rhuss pushed a commit to rhuss/docs that referenced this pull request Jun 2, 2020
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

8 participants