Skip to content

Conversation

@vaikas
Copy link
Contributor

@vaikas vaikas commented Jun 18, 2019

Fixes: knative/eventing#1367

Proposed Changes

  • Add documentation for Sequence + samples

@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 18, 2019
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jun 18, 2019
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved labels Jun 18, 2019
@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 18, 2019
@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 Jun 18, 2019

### Create the Sequence

Here, if you are using different type of Channel, you need to change the
Copy link
Member

Choose a reason for hiding this comment

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

wouldnt that be always, w/ the new API/CRDs, there is no "default" channel, AFAIK

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I mean if they don't want to use InMemoryChannel, say they want to use Kafka, they need to set their environment up differently.

@vaikas
Copy link
Contributor Author

vaikas commented Jun 18, 2019

Thanks for the review, PTALl

@@ -0,0 +1,194 @@
---
title: "Sequence Wired to event-display"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice write up, @vaikas-google ! I'll review this later today.

Copy link
Contributor

Choose a reason for hiding this comment

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

This PR has a lot more than I realized! Here's my first round of edits; still have a little more I'd like to do, but wanted to get these over to you.

@vaikas vaikas changed the title [WIP] Add docs / samples for Sequence Add docs / samples for Sequence Jun 19, 2019
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 19, 2019
@vaikas
Copy link
Contributor Author

vaikas commented Jun 19, 2019

Thanks for the reviews. I believe I addressed all the feedback, PTAL.

@n3wscott
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 19, 2019
@n3wscott
Copy link
Contributor

/hold
docs can hold cancel

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 19, 2019
type: "docs"
---

# Using Sequences in series
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering if we can come up with a title that explicitly states the value of doing this -- what do you get from using sequences in a series? What use-case is this ideal for?

(This is the first time I've seen the term "Sequence" in the context of Eventing; could be really helpful to add links out to more info if this is a new object we've added.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, yes, add a link to the sequence page you created further down in this PR :)

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 could add a backpointer to it, however, my thinking was that the landing page will be sequence.md and then the links point to specific examples like this.
Perhaps, I should switch Prerequisites with the Overview and then from Overview add the link to Sequence (../../../../sequence.md)?

Copy link
Contributor

Choose a reason for hiding this comment

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

@vaikas-google It's very hard to guarantee a particular reading path (thanks to Google search, people sharing links in Slack, people's own preferences when browsing, etc.) so it's best to add links to related content so that people can find the information no matter where they land.

I would be in favor of moving "Overview" up before "Prerequisites" and adding a link to the sequence page there.

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.

## Prerequisites

For this example, we'll assume you have set up an `InMemoryChannel`
as well as Knative Serving (for our functions). The examples use `default`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
as well as Knative Serving (for our functions). The examples use `default`
as well as Knative Serving (for our functions). The examples use the `default`


For this example, we'll assume you have set up an `InMemoryChannel`
as well as Knative Serving (for our functions). The examples use `default`
namespace, again, if you want to deploy to another Namespace, you will need
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
namespace, again, if you want to deploy to another Namespace, you will need
namespace. If you want to deploy to another namespace, you will need


## Usage

### Sequence Spec
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to include an example of a typical Sequence specification?

@@ -0,0 +1,194 @@
---
title: "Sequence Wired to event-display"
Copy link
Contributor

Choose a reason for hiding this comment

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

This PR has a lot more than I realized! Here's my first round of edits; still have a little more I'd like to do, but wanted to get these over to you.

@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Jun 20, 2019
@samodell samodell removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 25, 2019
@samodell
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2019
@samodell samodell mentioned this pull request Jun 25, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: samodell, vaikas-google

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 [samodell,vaikas-google]

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 c050da8 into knative:master Jun 25, 2019
RichieEscarez pushed a commit to RichieEscarez/docs that referenced this pull request Jun 26, 2019
* sequence with broker

* add sequence -> sequence sample

* sequence wired to event display

* terminal sequence

* first two examples moved to new v1beta1 services + cascading changes

* fix sequence2sequence to use v1beta services / default ns

* fix broker example to use v1beta1 service + default ns

* Address PR feedback

* add a pointer to vaikas-google/transformer sample

* update transformer image refs to latest

* address PR feedback

* move overview before prerequisites, add link to main sequence page
@vaikas vaikas deleted the sequence-docs branch July 19, 2019 17:25
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] document sampel for Sequence

7 participants