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

Bump k8s-openapi for Kubernetes v1_32 support and MSRV #1671

Merged
merged 10 commits into from
Dec 23, 2024
Merged

Bump k8s-openapi for Kubernetes v1_32 support and MSRV #1671

merged 10 commits into from
Dec 23, 2024

Conversation

clux
Copy link
Member

@clux clux commented Dec 22, 2024

  1. Upgrades Kubernetes structs and our latest test version to the earliest k8s-openapi supports; v1_28. Technically breaks our MK8SV policy slightly, as we only have structs up to 1.28. Will make a note in the docs.

  2. Upgrades MSRV to 1.81.0 (2 version behind stable) to fix CI. Red since a patch version of home v0.5.11 released 6 days ago. Follows our best-effort policy.

CI Details

Fixes up just bump-k8s to become an idempotent setter and pin other CI stuff to k8s-openapi/earliest to ease the logic (we have historically bumped +1 each time, but this time k8s-openapi dropped two versions, so can't really rely on it - also the script was super racey anyway).

We were usually 1 or 0 versions ahead of k8s-openapi in bumping, but this time it's actually the other way around. Not going to think about it much right now. Maybe we need to revisit the policy.

MSRV error via last red build before msrv fix: https://github.com/kube-rs/kube/actions/runs/12452623215/job/34761812169

error: package home v0.5.11 cannot be built because it requires rustc 1.81 or newer, while the currently active rustc version is 1.77.2

@clux clux changed the title Bump k8s-openapi for Kubernetes v1_32 support Bump k8s-openapi for Kubernetes v1_32 support Dec 22, 2024
@clux clux added the changelog-change changelog change category for prs label Dec 22, 2024
@clux clux added this to the 0.98.0 milestone Dec 22, 2024
clux added 2 commits December 22, 2024 07:51
Technically expands our testing range a little bit, but it simplifies our gunk here.

Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
Copy link

codecov bot commented Dec 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.9%. Comparing base (b104472) to head (f1034ef).
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1671   +/-   ##
=====================================
  Coverage   75.9%   75.9%           
=====================================
  Files         84      84           
  Lines       7612    7612           
=====================================
  Hits        5771    5771           
  Misses      1841    1841           

clux added 5 commits December 22, 2024 08:10
..nor does it support yaml anchors so back to hacks.

Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
brought in by home dep, but it's within our policy.

Signed-off-by: clux <[email protected]>
@clux clux changed the title Bump k8s-openapi for Kubernetes v1_32 support Bump k8s-openapi for Kubernetes v1_32 support and MSRV Dec 22, 2024
@clux clux marked this pull request as ready for review December 22, 2024 08:47
@clux clux requested a review from a team December 22, 2024 10:57
given change to floating 'earliest' tag.

Signed-off-by: clux <[email protected]>
@clux
Copy link
Member Author

clux commented Dec 23, 2024

Sending this through for a release. Don't want to be out of sync with k8s-openapi.

@clux clux merged commit 76b4af6 into main Dec 23, 2024
18 checks passed
@clux clux deleted the k8s-132 branch December 23, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-change changelog change category for prs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant