Skip to content
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

Vendor the dynamic RESTMapper from controller-runtime v0.19 #873

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Feb 24, 2025

Vendor the RESTMapper from controller-runtime v0.19 before The Kubernetes Aggregated Discovery was enabled
in controller-runtime v0.20 which broke the preferred version discovery of custom resources.

This PR refactors the client impersonation by always returning a kstatus poller using the lazy RESTMapper.

This PR allows us to use the latest controller-runtime while not breaking the preferred version discovery needed by kstatus.

xref: fluxcd/kustomize-controller#1373

@stefanprodan stefanprodan added the area/runtime Controller runtime related issues and pull requests label Feb 24, 2025
@stefanprodan stefanprodan force-pushed the lazy-restmapper branch 2 times, most recently from 4ebbb5e to c6e68fd Compare February 24, 2025 19:07
@stefanprodan stefanprodan marked this pull request as ready for review February 24, 2025 20:00
@stefanprodan stefanprodan changed the title Vendor the lazy restmapper from controller-runtime v0.19 Vendor the dynamic RESTMapper from controller-runtime v0.19 Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/runtime Controller runtime related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant