Skip to content

Avoid usage of newly deprecated webhook.Validator and webhook.Defaulter interfaces #3721

Closed
@nathanperkins

Description

@nathanperkins

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/deprecationCategorizes issue or PR as related to a feature/enhancement marked for deprecation.kind/featureCategorizes issue or PR as related to a new feature.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions