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

🌱 Move inmemory infrastructure API v1beta1 webhooks to separate package #9459

Merged

Conversation

Ankitasw
Copy link
Member

What this PR does / why we need it:

To work towards #9011, we need to remove the reliance on controller-runtime from the API packages.
This updates the webhooks to use the CustomDefaulter and CustomValidator pattern and moves them to match the Cluster and ClusterClass webhooks. This Is a more major lift but removes quite a bit of the code from the API package itself, making it's reliance on controller-runtime a lot smaller.

Which issue(s) this PR fixes (optional, in fixes #(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

/area api

@k8s-ci-robot k8s-ci-robot added area/api Issues or PRs related to the APIs cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 19, 2023
@Ankitasw Ankitasw changed the title Move inmemory infrastructure API v1beta1 webhooks to separate package 🌱 Move inmemory infrastructure API v1beta1 webhooks to separate package Sep 19, 2023
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 19, 2023
@Ankitasw Ankitasw force-pushed the move-inmemory-infra-webhooks branch 3 times, most recently from 74103e4 to 4942538 Compare September 19, 2023 11:20
@Ankitasw Ankitasw force-pushed the move-inmemory-infra-webhooks branch from 4942538 to 86ea6e4 Compare September 19, 2023 15:23
@sbueringer
Copy link
Member

/retest

unrelated flake

@sbueringer
Copy link
Member

No rush at all, but just in case it wasn't intentional I think the last push was only a rebase and didn't address the findings

@Ankitasw Ankitasw force-pushed the move-inmemory-infra-webhooks branch 3 times, most recently from d2b8128 to 3719381 Compare September 19, 2023 15:47
@Ankitasw Ankitasw force-pushed the move-inmemory-infra-webhooks branch from 3719381 to c8d10b4 Compare September 19, 2023 15:51
@sbueringer
Copy link
Member

Perfect, thx!

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 19, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 36361452be7f684d90c99658140f955453678ffe

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 19, 2023
@k8s-ci-robot k8s-ci-robot merged commit b98880e into kubernetes-sigs:main Sep 19, 2023
12 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.6 milestone Sep 19, 2023
@Ankitasw Ankitasw deleted the move-inmemory-infra-webhooks branch September 19, 2023 16:21
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. area/api Issues or PRs related to the APIs cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants