[WIP] trigger and broker to have a description via 'kubectl explain'#3832
[WIP] trigger and broker to have a description via 'kubectl explain'#3832nlopezgi wants to merge 2 commits into
Conversation
|
Used @Harwayne's generator (https://github.com/Harwayne/knative-gcp/tree/reflective-schema/hack/schema) to create some of the content, but modified manually files as the output from his tool is not exactly in the right format. My feeling is that getting a tool such as that one to work perfectly for all cases is not worth the effort/payback. |
| schema: | ||
| openAPIV3Schema: | ||
| type: object | ||
| description: "Broker collects a pool of events that are consumable using Triggers. Brokers provide a well-known endpoint for event delivery that senders can use with minimal knowledge of the event routing strategy. Receivers use Triggers to request delivery of events from a Broker's pool to a specific URL or Addressable endpoint." |
There was a problem hiding this comment.
nit: I see receiver/consumer/subscriber used in the descriptions. would prefer to pick one.
There was a problem hiding this comment.
Used Subscriber (as its part of the API) everywhere possible. Updated source docs (in *_types.go)
| type: object | ||
| properties: | ||
| backoffDelay: | ||
| description: 'BackoffDelay is the delay before retrying. More |
There was a problem hiding this comment.
nit: is there any convention in using single or double quotes in description?
There was a problem hiding this comment.
decided to use single quotes as its can be applied homogeneously (i.e., double quotes are not good in some cases)
|
/approve Letting @liu-cong LGTM it after addressing the comments |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lionelvillard, nlopezgi The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@nlopezgi: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
The following jobs failed:
Failed non-flaky tests preventing automatic retry of pull-knative-eventing-integration-tests: and 64 more. |
|
marking as WIP until I figure out how to fix the testing issues |
|
superseded by the two PRs mentioned above |
|
@nlopezgi: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Part of #3054
Proposed Changes
kubectl explain#3054Sample output of kubectl explain
Trigger:
Broker:
Content was partially generated using https://github.com/Harwayne/knative-gcp/tree/reflective-schema/hack/schema
fyi @lionelvillard