Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Add Tasks section to docs #2587

Merged
merged 1 commit into from
Apr 9, 2019

Conversation

jberkhahn
Copy link
Contributor

  • how to install a broker
  • how to sync a broker
  • refactor concepts section

This PR is a

  • Feature Implementation
  • Bug Fix
  • Documentation

Fixes #1795

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 28, 2019
@k8s-ci-robot k8s-ci-robot requested review from jboyd01 and MHBauer March 28, 2019 22:28
@jberkhahn
Copy link
Contributor Author

/cc @MHBauer @jboyd01

Copy link
Contributor

@jboyd01 jboyd01 left a comment

Choose a reason for hiding this comment

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

I agree with adding the Task section, good addition.

## [Install a Broker](./install_broker.md)

How to add a broker to your catalog. This will make the services that broker
available to users on your cluster. Adding it as a Cluster Service Broker
Copy link
Contributor

Choose a reason for hiding this comment

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

grammar... "This will make the services that broker available to users..."
"that a broker offers" ?


How to add a broker to your catalog. This will make the services that broker
available to users on your cluster. Adding it as a Cluster Service Broker
(CSB) will make it available cluster-wide. Adding it as a Service Broker,
Copy link
Contributor

Choose a reason for hiding this comment

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

you are making up new abbreviates here - - CSB and NSB. Not certain we want to do that. ??

You might try something like "A Service Broker can be registered with Service Catalog as either a Cluster Service Broker which makes its resources available cluster wide, to all users in all namespaces, or as a Service Broker which only exposes the resources within the specified namespace."

ACTUALLY.... how about just saying this task covers how to add a service broker. Leave the details about CSB & NSB to the actual task page?


## [Install a Broker](./install_broker.md)

How to add a broker to your catalog. This will make the services that broker
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 that first sentence should be a complete sentence that is grammatically correct. Maybe "You must install a broker into the service catalog to make the services it offers available."


## [Sync a Broker](./sync_broker.md)

How to re-sync a broker that is already added to your catalog. When a broker's
Copy link
Contributor

Choose a reason for hiding this comment

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

Again I'd make the first sentence grammatically correct. "This task shows how to ..." or something. And I'd avoid the sync abbreviation vs spelling it out.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

my issue with spelling it out vs just saying 'sync' is we've already used sync in places - the command is called sync, the help in svcat calls it sync, etc.

## [Sync a Broker](./sync_broker.md)

How to re-sync a broker that is already added to your catalog. When a broker's
catalog changes, it may need to be resynced with Service Catalog.
Copy link
Contributor

Choose a reason for hiding this comment

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

resynchronized

also called a Namespaced Service Broker (NSB) will make it available
only in a single namespace.

## [Sync a Broker](./sync_broker.md)
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of Sync can we spell out Synchronize?

done by creating either a ClusterServiceBroker or ServiceBroker object, and
then allowing Service Catalog to sync with the broker. This is typically
referred to as "registering" the broker.

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 this is the right place to elaborate on the differences between Cluster Vs NS. "A Service Broker can be registered with Service Catalog as either a Cluster Service Broker which makes its resources available cluster wide, to all users in all namespaces, or as a Service Broker which only exposes the resources within the specified namespace."

layout: docwithnav
---

A broker's catalog may occasionaly change the services it offers. A broker
Copy link
Contributor

Choose a reason for hiding this comment

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

nits about the wording here: a broker doesn't resync - - svcat resyncs.

like everywhere else, spell out sync. Good details though Jonathan.

A broker's catalog may occasionaly change the services it offers. A broker
may resync automatically or may need to be resynced manually. By default,
brokers are resynced automatically based on an interval that is globally
set in Service Catalog. If a broker must be resynced immeadiately or
Copy link
Contributor Author

Choose a reason for hiding this comment

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

immediately

layout: docwithnav
---

A broker's catalog may occasionaly change the services it offers. A broker
Copy link
Contributor Author

Choose a reason for hiding this comment

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

occasionally

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Therefore, Service Catalog must resync with the broker to get the updated services

Copy link
Contributor Author

Choose a reason for hiding this comment

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

add the name of the global flag in the helm chart

`spec.relistBehavior` has been set to manual, then it can be resynced
manually by incrementing `spec.relistRequests`. This can be done using svcat:
```console
$ svcat sync broker foobar --scope cluster
Copy link
Contributor Author

Choose a reason for hiding this comment

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

add command line example of updated catalog: 2 -> 3 classes

$ svcat register foobarbroker --url http://foobarbroker.com --scope cluster
```

Most actual brokers will require authenticaiton of some kind. To add this, use the
Copy link
Contributor Author

Choose a reason for hiding this comment

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

authentication

may resync automatically or may need to be resynced manually. By default,
brokers are resynced automatically based on an interval that is globally
set in Service Catalog. If a broker must be resynced immeadiately or
`spec.relistBehavior` has been set to manual, then it can be resynced
Copy link
Contributor Author

@jberkhahn jberkhahn Apr 1, 2019

Choose a reason for hiding this comment

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

use .spec... of the broker

@MHBauer
Copy link
Contributor

MHBauer commented Apr 1, 2019

Looked at these with jonathan, his comments are my comments.

- how to install a broker
- how to sync a broker
- refactor concepts section
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 1, 2019
@jberkhahn
Copy link
Contributor Author

@jboyd01 @MHBauer rejiggered stuff according to your comments, please take another look when you get a chance

@jberkhahn
Copy link
Contributor Author

/retest

@jberkhahn
Copy link
Contributor Author

@MHBauer could you take a look at this?

Copy link
Contributor

@MHBauer MHBauer left a comment

Choose a reason for hiding this comment

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

browsed, the spelling seems good now.
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 8, 2019
@jboyd01
Copy link
Contributor

jboyd01 commented Apr 9, 2019

Nice additions @jberkhahn
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jboyd01

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 9, 2019
@k8s-ci-robot k8s-ci-robot merged commit 96583d3 into kubernetes-retired:master Apr 9, 2019
viviyww pushed a commit to viviyww/service-catalog that referenced this pull request May 10, 2019
- how to install a broker
- how to sync a broker
- refactor concepts section
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF 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.

Docs: Add documentation on adding brokers to the catalog
4 participants