Skip to content

GCP PubSub Channel#618

Merged
knative-prow-robot merged 38 commits into
knative:masterfrom
Harwayne:pb-channel
Dec 3, 2018
Merged

GCP PubSub Channel#618
knative-prow-robot merged 38 commits into
knative:masterfrom
Harwayne:pb-channel

Conversation

@Harwayne
Copy link
Copy Markdown
Contributor

Fixes #443, #444

Proposed Changes

  • Create a GCP PubSub Channel.

Release Note

NONE

@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 Nov 14, 2018
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Nov 14, 2018
@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Nov 14, 2018
@Harwayne Harwayne changed the title [WIP] GCP PubSub Channel GCP PubSub Channel Nov 19, 2018
Copy link
Copy Markdown
Contributor

@grantr grantr left a comment

Choose a reason for hiding this comment

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

Partial review!

Comment thread config/provisioners/gcppubsub/README.md Outdated
Comment thread config/provisioners/gcppubsub/README.md Outdated
Comment thread config/provisioners/gcppubsub/README.md

They do not offer:
* Ordering guarantees
- Events seen downstream may not occur in the same order they were inserted into the Channel.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I find this particular formatting of a list of titles plus descriptions tough to take in at a glance. I prefer something more like this:

  • Bold title. Normal description, all in a single list item.
  • Another bold title. Another description.

Comment thread config/provisioners/gcppubsub/README.md
Comment thread config/provisioners/gcppubsub/gcppubsub.yaml
Comment thread pkg/provisioners/gcppubsub/channel/controller.go
Comment thread pkg/provisioners/gcppubsub/channel/controller.go Outdated
Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go
Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go
Copy link
Copy Markdown
Contributor

@grantr grantr left a comment

Choose a reason for hiding this comment

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

Partial review through channel reconciler and tests.

Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go
Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go
Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go
Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go
Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go
Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go
Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go
Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go Outdated
Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go
Comment thread pkg/provisioners/gcppubsub/channel/reconcile.go Outdated
@grantr
Copy link
Copy Markdown
Contributor

grantr commented Nov 28, 2018

/milestone v0.2.2

@knative-prow-robot knative-prow-robot modified the milestones: v0.2.1, v0.2.2 Nov 28, 2018
Copy link
Copy Markdown
Contributor

@grantr grantr left a comment

Choose a reason for hiding this comment

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

This is brilliant work @Harwayne! Sorry my review has taken so long. Still not done 😬

Comment thread pkg/provisioners/gcppubsub/dispatcher/dispatcher/controller.go Outdated
Comment thread pkg/provisioners/gcppubsub/dispatcher/dispatcher/controller.go
Comment thread pkg/provisioners/gcppubsub/dispatcher/dispatcher/reconcile.go Outdated
Comment thread pkg/provisioners/gcppubsub/dispatcher/dispatcher/reconcile.go Outdated
Comment thread pkg/provisioners/gcppubsub/dispatcher/dispatcher/reconcile.go Outdated
Comment thread pkg/provisioners/gcppubsub/dispatcher/dispatcher/reconcile.go Outdated
Copy link
Copy Markdown
Contributor

@grantr grantr left a comment

Choose a reason for hiding this comment

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

So close! All I have left is some changes to log levels, then this can go in.

Comment thread pkg/provisioners/gcppubsub/dispatcher/receiver/receiver.go Outdated
Comment thread pkg/provisioners/gcppubsub/dispatcher/receiver/receiver.go Outdated
Comment thread pkg/provisioners/gcppubsub/dispatcher/dispatcher/reconcile.go Outdated
Comment thread pkg/provisioners/gcppubsub/dispatcher/dispatcher/reconcile.go Outdated
Comment thread pkg/provisioners/gcppubsub/dispatcher/receiver/receiver.go Outdated
Comment thread pkg/provisioners/gcppubsub/dispatcher/receiver/receiver.go
Comment thread pkg/provisioners/gcppubsub/util/creds.go Outdated
Comment thread pkg/provisioners/gcppubsub/util/creds.go Outdated
"cloud.google.com/go/pubsub"
)

// This file exists so that we can unit test failures with the PubSub client.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This whole setup is a heroic effort to work around a library design that is impossible to test. Thanks for taking the time to make it work @Harwayne, but I wish you didn't have to. As good open source citizens, we should probably open an issue on the pubsub client repo describing the difficulty. 😇

limitations under the License.
*/

package testcreds
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Optional: Why is this a separate package from the actual test code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I didn't want to mix test code in with production code. If put into the same package as creds.go, then all the real code would also have these fake functions already imported.

It also makes for nice instantiation, testcreds.MakeSecretWithCreds().

Copy link
Copy Markdown
Contributor

@grantr grantr left a comment

Choose a reason for hiding this comment

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

🎉
/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 3, 2018
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: grantr, Harwayne

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2018
@knative-prow-robot knative-prow-robot merged commit 6b563ab into knative:master Dec 3, 2018
@Harwayne Harwayne deleted the pb-channel branch January 29, 2019 22:27
lberk pushed a commit to lberk/eventing that referenced this pull request Jun 11, 2020
* 💄 tweaking CI job generation to be actually valid

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* 💄 typo

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Proper image mirror file generation

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Adding one more task execution

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Adding one more update to the ci generator

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Better promotion generation

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Script tweaks

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Optimize image and release creation

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Adding src-image to CI generator

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Adding some Release guide

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Feedback from Martin, part I

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Better comment

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
creydr pushed a commit to creydr/knative-eventing that referenced this pull request Jun 12, 2024
Co-authored-by: Michal Vinkler <mvinkler@redhat.com>
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. 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.

6 participants