Skip to content

Eventing Webhook Controller#112

Merged
google-prow-robot merged 2 commits into
knative:masterfrom
scothis:webhook
Jun 25, 2018
Merged

Eventing Webhook Controller#112
google-prow-robot merged 2 commits into
knative:masterfrom
scothis:webhook

Conversation

@scothis
Copy link
Copy Markdown
Contributor

@scothis scothis commented Jun 25, 2018

Core structure copied from the webhook in serving, but drops zap since it isn't used in eventing.

Prevents:

  • creation of a Channel without a Bus reference
  • mutation of a Channel's Bus reference
  • creation of a Subscription without a Channel reference
  • mutation of a Subscription's Channel reference

Fixes #107

Core structure copied from the webhook in serving.

Prevents:
- creation of a Channel without a Bus reference
- mutation of a Channel's Bus reference
- creation of a Subscription without a Channel reference
- mutation of a Subscription's Channel reference

Fixes #107
@google-prow-robot google-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jun 25, 2018
Comment thread pkg/webhook/certs.go Outdated

const (
// TODO(vaikas): Add / change other parts of the cert we might care about
organization = "kube"
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.

hehe, perhaps this should be:
knative

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.

Copied from serving, I doubt the cert subject name ends up being impactful, but updating to knative makes sense to me.

Comment thread pkg/webhook/webhook.go Outdated
client: client,
options: options,
handlers: map[string]GenericCRDHandler{
// "Bus": {
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.

intentional?

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 don't have any extra validation rules for the Bus right now. I'll remove.

@vaikas
Copy link
Copy Markdown
Contributor

vaikas commented Jun 25, 2018

/lgtm

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2018
@vaikas
Copy link
Copy Markdown
Contributor

vaikas commented Jun 25, 2018

/retest

@vaikas
Copy link
Copy Markdown
Contributor

vaikas commented Jun 25, 2018

/approve

@google-prow-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@google-prow-robot google-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 25, 2018
@google-prow-robot google-prow-robot merged commit 18fcdb7 into knative:master Jun 25, 2018
@scothis scothis deleted the webhook branch June 25, 2018 19:10
matzew pushed a commit to matzew/eventing that referenced this pull request May 20, 2019
Update script to fail fast and use the repo name in the hub command
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. 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.

5 participants