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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃尡 Move docker infrastructure API v1beta1 webhooks to separate package #9458

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. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Sep 19, 2023
@Ankitasw Ankitasw changed the title Move docker infrastructure API v1beta1 webhooks to separate package 馃尡 Move docker infrastructure API v1beta1 webhooks to separate package Sep 19, 2023
@Ankitasw
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@sbueringer
Copy link
Member

sbueringer commented Sep 19, 2023

Overall looks good. Basically just one finding + we can make some improvements to our Makefile to detect if the manifests.yaml is still generated (it wasn't regenerated in this PR because the files were moved and the new package was not added to the generate target)

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Sep 19, 2023
@Ankitasw Ankitasw force-pushed the move-docker-api-webhooks branch 2 times, most recently from a7a1249 to 9490cea Compare September 19, 2023 15:00
@sbueringer sbueringer changed the title 馃尡 Move docker infrastructure API v1beta1 webhooks to separate package 馃尡 Move docker infrastructure API v1beta1 webhooks to separate package Sep 19, 2023
Makefile Outdated Show resolved Hide resolved
@sbueringer
Copy link
Member

Thank youuu!

/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: 6b865c160d5e09600e4ae194faa7dfce2146d85a

@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 beaa3ea into kubernetes-sigs:main Sep 19, 2023
20 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.6 milestone Sep 19, 2023
@Ankitasw Ankitasw deleted the move-docker-api-webhooks branch September 19, 2023 16:01
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.

None yet

3 participants