Skip to content

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