Skip to content

Conversation

@vaikas
Copy link
Contributor

@vaikas vaikas commented Aug 18, 2020

Add an example that does not rely on defaults for creating a Broker.

Proposed Changes

  • Add an example that does not rely on defaults for creating a Broker.

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vaikas

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 approved size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 18, 2020
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 18, 2020
Copy link
Contributor

@abrennan89 abrennan89 left a comment

Choose a reason for hiding this comment

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

Some suggestions re layout and formatting 🙂 thanks for writing this up.
Mostly just little cleanups but I'd like to see it lined out more clearly like a procedure with steps as per the suggestions.

Comment on lines 63 to 81
A full example could look something like this:
```shell
kubectl create -f - <<EOF
apiVersion: eventing.knative.dev/v1
kind: Broker
metadata:
annotations:
eventing.knative.dev/broker.class: MTChannelBasedBroker
name: default
namespace: default
spec:
config:
apiVersion: v1
kind: ConfigMap
name: config-br-default-channel
namespace: knative-eventing
EOF
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this to the intro part maybe?

Copy link
Contributor

Choose a reason for hiding this comment

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

OR just show the one full example and rewrite the steps around it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, so we have the two steps you can modify, class / config. Then showing them combined? How's that?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's actually fine as is now I see it with the other changes 🙂 thank you!

Copy link
Contributor

Choose a reason for hiding this comment

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

One last thing - I would actually remove the kubectl create -f - <<EOF bits so that it's just showing the YAML example. That's up to you though 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, done :)

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: no Indicates the PR's author has not signed the CLA. and removed cla: yes Indicates the PR's author has signed the CLA. labels Aug 18, 2020
Comment on lines 49 to 62
1. Modify the `eventing.knative.dev/broker.class` annotation. Replace `MTChannelBasedBroker` with the class type you want to use:

```yaml
kind: Broker
metadata:
annotations:
eventing.knative.dev/broker.class: MTChannelBasedBroker

1. Configure the `spec.config` with the details of the ConfigMap that defines the backing channel for the broker class:

```yaml
kind: Broker
spec:
config:
apiVersion: v1
kind: ConfigMap
name: config-br-default-channel
namespace: knative-eventing
Copy link
Contributor

Choose a reason for hiding this comment

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

you might also need to fix the indentation for the steps, idk how they'll render - maybe build a preview if you can? 🙂

@abrennan89
Copy link
Contributor

For some reason you need to rebase I think after accepting my suggestions because of the weird CLA thing @vaikas - sorry!

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes Indicates the PR's author has signed the CLA. and removed cla: no Indicates the PR's author has not signed the CLA. labels Aug 18, 2020
@abrennan89
Copy link
Contributor

@vaikas ping me when you're finished with any other changes or reviews and I can lgtm this :) thanks

@abrennan89
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 18, 2020
@knative-prow-robot knative-prow-robot merged commit 28fd0eb into knative:master Aug 18, 2020
@abrennan89
Copy link
Contributor

@vaikas does this need to be cherrypicked to any other versions or is it for 0.17.0?

@ellenevans when is the cut off for things to be included in the 0.17.0 docs release?

@vaikas vaikas deleted the manual-broker branch August 18, 2020 20:28
@vaikas
Copy link
Contributor Author

vaikas commented Aug 18, 2020

I think .17 is fine, though it's the same in .16, so I suppose we could cp it there as well?

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/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants