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

Broker and source docs improvements #555

Conversation

gabo1208
Copy link
Contributor

@gabo1208 gabo1208 commented Dec 17, 2021

Changes

  • 🎁 New samples docs and files
  • 🧹 Updated old source and broker docs (still some work to do but it's a start)

/kind documentation

Fixes #553

Release Note

Improved Broker's and Source's Readme docs and Samples description and files.

Docs

@knative-prow-robot knative-prow-robot added kind/documentation needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 17, 2021
@gabo1208 gabo1208 force-pushed the broker-and-source-docs-improvements branch from 42d4626 to 10f63ae Compare December 17, 2021 17:23
@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 17, 2021
@codecov
Copy link

codecov bot commented Dec 17, 2021

Codecov Report

Merging #555 (a9bcc88) into main (06ba8e7) will decrease coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #555      +/-   ##
==========================================
- Coverage   75.58%   75.50%   -0.09%     
==========================================
  Files          47       47              
  Lines        2892     2870      -22     
==========================================
- Hits         2186     2167      -19     
+ Misses        568      565       -3     
  Partials      138      138              
Impacted Files Coverage Δ
pkg/reconciler/broker/broker.go 89.38% <0.00%> (-0.62%) ⬇️
pkg/reconciler/trigger/trigger.go 59.84% <0.00%> (-0.53%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06ba8e7...a9bcc88. Read the comment docs.

@gabo1208 gabo1208 force-pushed the broker-and-source-docs-improvements branch 4 times, most recently from f8d0ca4 to 8b61ea4 Compare December 17, 2021 23:01
@gabo1208 gabo1208 force-pushed the broker-and-source-docs-improvements branch 2 times, most recently from 2ada76f to a014efb Compare January 6, 2022 15:16
samples/source/concurrent-dispatch/100-namespace.yaml Outdated Show resolved Hide resolved
pkg/reconciler/source/resources/receive_adapter.go Outdated Show resolved Hide resolved
broker/README.md Show resolved Hide resolved
broker/README.md Outdated Show resolved Hide resolved
broker/README.md Show resolved Hide resolved
samples/source/README.md Outdated Show resolved Hide resolved
source/README.md Outdated Show resolved Hide resolved
source/README.md Outdated Show resolved Hide resolved
source/README.md Outdated Show resolved Hide resolved
source/README.md Outdated

### Installation

* Install the source from the nightly build:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be moved to the Development.md instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm thinking about getting read of the Development.md (maybe there are some things to keep) but with this readme and the samples I think everything should be covered

…example promoting the use of internal tools and with all the components needed to do a basic topology + set the prefetch count to use its default value to one but added comment on the file for the user to be able to modify it and understand whats going on
added some extra info and fixed typo

fixed style error in yaml

added some extra info and fixed typo, removing trailing spaces from source sample readme
@gabo1208 gabo1208 force-pushed the broker-and-source-docs-improvements branch from a014efb to d65d6f2 Compare January 7, 2022 20:23
Copy link
Contributor

@xtreme-sameer-vohra xtreme-sameer-vohra left a comment

Choose a reason for hiding this comment

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

Thanks @gabo1208 it's looking great :)
Added some minor comments and there are a few comments from before.

samples/broker-trigger/README.md Show resolved Hide resolved
NAME URL AGE READY REASON
default http://default-broker-ingress.dlq-demo.svc.cluster.local 2m39s True
default http://default-broker-ingress.broker-trigger-demo.svc.cluster.local 2m39s True
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing the formatting.
Thoughts on moving kubectl -n broker-trigger-demo get brokers to after the Broker install ?

Copy link
Contributor

@xtreme-sameer-vohra xtreme-sameer-vohra left a comment

Choose a reason for hiding this comment

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

It would be valuable for the samples to simplify the setup required to run them, so does it make sense to refer to the releases of the Broker and Source and remove references to building them from source code ?

samples/broker-trigger/README.md Outdated Show resolved Hide resolved
samples/broker-trigger/README.md Outdated Show resolved Hide resolved
samples/source/README.md Outdated Show resolved Hide resolved
samples/source/README.md Outdated Show resolved Hide resolved
…link + added source readme steps to build and install the source + added source example and fixed some typos and broken links
@knative-prow-robot knative-prow-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 13, 2022
@gabo1208 gabo1208 force-pushed the broker-and-source-docs-improvements branch from 6bad5df to 3ac8233 Compare January 13, 2022 19:37
added newline at the end of the source sample file

added newline to source dev md file

fixed typo in source md
readded table of contents to the source
changed development references to readme

changed source readme formats
@gabo1208 gabo1208 force-pushed the broker-and-source-docs-improvements branch from 8f06cee to 6d3d320 Compare January 14, 2022 01:46
broker/README.md Show resolved Hide resolved
NAME URL AGE READY REASON
default http://default-broker-ingress.dlq-demo.svc.cluster.local 2m39s True
default http://default-broker-ingress.broker-trigger-demo.svc.cluster.local 2m39s True
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done with the headers

And i think here its ok cause since the ksvc is the broker's sink so the msg may change

### Cleanup

```sh
kubectl delete ns broker-trigger-demo
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems to be the standard on knative docs to do the ns delete. I see what you mean but for all of the samples in this repo this work

### Cleanup

```sh
kubectl delete ns source-demo
Copy link
Contributor Author

Choose a reason for hiding this comment

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

answered above

source/README.md Outdated

### Installation

* Install the source from the nightly build:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm thinking about getting read of the Development.md (maybe there are some things to keep) but with this readme and the samples I think everything should be covered

samples/broker-trigger/README.md Show resolved Hide resolved
NAME URL AGE READY REASON
default http://default-broker-ingress.dlq-demo.svc.cluster.local 2m39s True
default http://default-broker-ingress.broker-trigger-demo.svc.cluster.local 2m39s True
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the broker has a DLQ defined it could be not ready if we list it earlier

source/README.md Show resolved Hide resolved
@xtreme-sameer-vohra
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 18, 2022
@xtreme-sameer-vohra
Copy link
Contributor

Thanks for driving this @gabo1208 👍

@knative-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gabo1208, xtreme-sameer-vohra

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:
  • OWNERS [xtreme-sameer-vohra]

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 Jan 18, 2022
@knative-prow-robot knative-prow-robot merged commit 169e951 into knative-extensions:main Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/documentation lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standardize Brokers and Source docs and samples format
3 participants