kubernetes-sigs / controller-runtime

Repo for the controller-runtime subproject of kubebuilder (sig-apimachinery)
Apache License 2.0
2.43k stars 1.12k forks source link

Restmapper: Use aggregated discovery if available #2897

Open alvaroaleman opened 1 month ago

alvaroaleman commented 1 month ago

We've built a lazy restmapper that only fetches mappings when needed to reduce the number of api calls made and thus speed things up. In the meantime, upstream built aggregated discovery which allows to fetch all restmappings with a single api call.

We should update our restmapper to use aggregated discovery if available.

/kind feature

sbueringer commented 1 month ago

Sounds good!