Closed
Description
What do you want to happen?
In this controller-runtime issue, it was decided to deprecate the webhook.Validator and webhook.Defaulter interfaces, due to issues they cause with project upgrades by requiring controller-runtime import in API packages. Those functions are planned to be removed later.
We should update the Kubebuilder generated code and the docs to use admission.CustomValidator and admission.CustomDefaulter instead.
Jan 13th edit:
We also need to implement this interface outside of the API packages so that the API packages are not coupled with controller-runtime versions (see the issue above for context). The docs should be updated to warn the reader about the dangers of implementing this on the API types.
Extra Labels
No response
Metadata
Metadata
Assignees
Labels
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Categorizes issue or PR as related to a feature/enhancement marked for deprecation.Categorizes issue or PR as related to a new feature.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Activity