-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 docker infrastructure API v1beta1 webhooks to separate package #9458
🌱 Move docker infrastructure API v1beta1 webhooks to separate package #9458
Conversation
/test pull-cluster-api-e2e-full-main |
test/infrastructure/docker/internal/webhooks/dockercluster_webhook.go
Outdated
Show resolved
Hide resolved
test/infrastructure/docker/internal/webhooks/dockercluster_webhook.go
Outdated
Show resolved
Hide resolved
test/infrastructure/docker/internal/webhooks/dockerclustertemplate_webhook.go
Outdated
Show resolved
Hide resolved
test/infrastructure/docker/internal/webhooks/dockerclustertemplate_webhook.go
Outdated
Show resolved
Hide resolved
test/infrastructure/docker/internal/webhooks/dockermachinetemplate_webhook.go
Outdated
Show resolved
Hide resolved
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) |
189393b
to
57ccff7
Compare
57ccff7
to
19b6a71
Compare
a7a1249
to
9490cea
Compare
9490cea
to
a0ec023
Compare
Thank youuu! /lgtm |
LGTM label has been added. Git tree hash: 6b865c160d5e09600e4ae194faa7dfce2146d85a
|
[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 |
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