Description
controller-runtime has removed the admission.Defaulter
and admission.Validator
interfaces as of v0.20.0 (kubernetes-sigs/controller-runtime#2877)
cluster-api v1.10 uses a version of controller-runtime that no longer has these present.
Looking through related PR history, CAPI has provided an implementer's guide for transitioning these interfaces out of API packages. https://cluster-api.sigs.k8s.io/developer/providers/getting-started/implement-api-types#registering-apis-in-the-scheme
There's also some prior art in how CAPI itself removed these here: kubernetes-sigs/cluster-api#9045