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
Refactor gardener-admission-controller #3577
Refactor gardener-admission-controller #3577
Conversation
d4d4b05
to
de3eed0
Compare
...er/controlplane/charts/runtime/templates/admission-controller/configmap-componentconfig.yaml
Show resolved
Hide resolved
cmd/gardener-admission-controller/app/gardener_admission_controller.go
Outdated
Show resolved
Hide resolved
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
/assign |
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, I really like it! Two comments from my side, otherwise looks good.
cmd/gardener-admission-controller/app/gardener_admission_controller.go
Outdated
Show resolved
Hide resolved
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
* Replace server.https.tls.server{Cert,Key}Path by server.https.tls.serverCertDir * Add metrics and healthProbe server config * refactor admission-controller into controller-runtime component * adapt tests for webhook handlers * Accept admission/v1, set timeoutSeconds=10 * remove unused metric InvalidWebhookRequest * Limit number of shoots listed to 1 * Make metrics and healthProbes config pointers * Address review comments
* Replace server.https.tls.server{Cert,Key}Path by server.https.tls.serverCertDir * Add metrics and healthProbe server config * refactor admission-controller into controller-runtime component * adapt tests for webhook handlers * Accept admission/v1, set timeoutSeconds=10 * remove unused metric InvalidWebhookRequest * Limit number of shoots listed to 1 * Make metrics and healthProbes config pointers * Address review comments
How to categorize this PR?
/area quality dev-productivity
/kind cleanup
/priority normal
What this PR does / why we need it:
This PR refactors/enhances GAC similar to GSAC in #3459.
admission/v1
) in the webhook configs, as it is now supported by the c-r webhook handlers10s
according to best praticeWhich issue(s) this PR fixes:
Part of #3109
Special notes for your reviewer:
/squash
Release note: