-
Notifications
You must be signed in to change notification settings - Fork 463
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
Streamline webhook handler registration in gardener-admission-controller
#6873
Conversation
/assign |
51daef6
to
b6a5219
Compare
pkg/admissioncontroller/webhook/admission/kubeconfigsecret/handler.go
Outdated
Show resolved
Hide resolved
b6a5219
to
4a1f4ec
Compare
/test pull-gardener-integration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to see some boilerplate code being eliminated ⭐
Please see my questions and comments added inline.
pkg/admissioncontroller/webhook/admission/internaldomainsecret/handler.go
Outdated
Show resolved
Hide resolved
pkg/admissioncontroller/webhook/admission/internaldomainsecret/handler.go
Show resolved
Hide resolved
pkg/admissioncontroller/webhook/admission/internaldomainsecret/handler.go
Show resolved
Hide resolved
…ret` admission handler This is unreachable code since there would not be a 'Create' event when the exact same secret already exists.
…nd seed namespaces in all cases
…ts when role label gets newly added
4a1f4ec
to
63a6767
Compare
/test pull-gardener-e2e-kind-ha-zone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing the comments.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: acumino 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 |
gardener-admission-controller
gardener-admission-controller
How to categorize this PR?
/area dev-productivity
/kind cleanup technical-debt
What this PR does / why we need it:
This PR streamlines the webhook handler registration in
gardener-admission-controller
so that it's similar to what happens for the webhooks ingardener-resource-manager
(see #6865), and generally similar to the registration of controllers in other components (garden{er-controller-manager,er-scheduler,let}
).Which issue(s) this PR fixes:
Part of #4251
Special notes for your reviewer:
Similar to #6865.
Release note: