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

Update dependencies to Kubernetes 1.30 and adapt to breaking changes #763

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Apr 18, 2024

⚠️ There is a breaking change in Kubernetes 1.30 client-go introduced in kubernetes/kubernetes#122069 where the leaderelection.SwitchMetric was renamed to leaderelection.LeaderMetric and this breaks controller-runtime. So we have to pin controller-runtime to an unreleased version that contains kubernetes-sigs/controller-runtime#2693 here and in every Flux controller.

PS. The breaking change was addressed in https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.18.0

We can't release Flux v2.3 without bumping Kubernetes to 1.30 and be stuck on 1.29 till end of Q3. I think we should go forward with this, when controller-runtime has a stable release that includes client-go 1.30, we'll do a patch release for Flux v2.3.

PS. Using major.minor for the Go version in go.mod is no longer possible because Kubernetes switched to full semver.

@stefanprodan stefanprodan added the dependencies Pull requests that update a dependency label Apr 18, 2024
Pin controller-runtime to main branch due to
breaking change in Kubernetes 1.30 `client-go/tools/leaderelection`.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants