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

Revert controller-runtime to v0.19 #1181

Closed
wants to merge 1 commit into from

Conversation

matheuscscp
Copy link
Member

@matheuscscp matheuscscp commented Feb 24, 2025

Revert controller-runtime from v0.20 to v0.19. The Kubernetes Aggregated Discovery was enabled in controller-runtime#2901 and looks like this feature is buggy resulting in old API versions being returned as the preferred version randomly.

This was observed on lots of cluster by Flux users, including on Kubernetes 1.32, 1.31 and OpenShift 4.16.

xref: fluxcd/kustomize-controller#1374

Signed-off-by: Matheus Pimenta <[email protected]>
@stefanprodan
Copy link
Member

I realised this is not needed, helm-controller does not uses the RestMapper from controller-runtime, it creates its own with client-go

discoveryClient, err := discovery.NewDiscoveryClientForConfig(config)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants