Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ enable conversion webhook in webhook builder #502

Closed
wants to merge 3 commits into from

Conversation

droot
Copy link
Contributor

@droot droot commented Jun 26, 2019

This PR disables auto registration of conversion webhook on webhook server. New behavior is -- if a type implements convertible, then conversion webhook is auto registered in webhook builder. This makes it consistent with other webhooks.

Note: this is rebased on #497 . Sending in for early feedback.

Mengqi Yu and others added 2 commits June 24, 2019 14:40
Controller builder now only build controller; while webhook builder only build webhook.
Main changes:
 - Integrate conversion webhook in webhook builder
 - Register conversion handler only when a type is convertible
@droot droot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 26, 2019
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jun 26, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: droot

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jun 26, 2019
 - Removed examples/conversion dir instead use testdata project under
 pkg/webhook/conversion
 - Enhanced tests to add spoke to spoke conversion
@k8s-ci-robot k8s-ci-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 27, 2019
@mengqiy
Copy link
Member

mengqiy commented Jun 27, 2019

@droot Please rebase and I will take another pass.

@droot
Copy link
Contributor Author

droot commented Jun 27, 2019

closing this in favor of #502

@droot droot closed this Jun 27, 2019
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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.

None yet

3 participants