build(deps): bump kube to 4.2.0 - #24
Closed
alpeb wants to merge 1 commit into
Closed
Conversation
Bumps `kube`, `kube-client`, `kube-core`, and `kube-runtime` from 1.1 to 4.2.0, which requires `k8s-openapi` 0.28. k8s-openapi 0.28 replaced `chrono` with `jiff` as its time library, so `metav1::Time` and `metav1::MicroTime` now wrap `jiff::Timestamp`. This propagates to kubert's public API: `lease::Claim::expiry` changes from `chrono::DateTime<Utc>` to `jiff::Timestamp`. Timestamp arithmetic in the lease manager now uses `jiff::SignedDuration` and saturates rather than panicking on overflow. `chrono` is replaced by `jiff` as a dependency of both `kubert` and the examples. kube 4.x boxes `Status` in `Error::Api` and deprecates `kube_core::ErrorResponse`, so `LeaseManager::is_conflict` now uses the `Status::is_conflict()` helper. That leaves `hyper` unused in a lease-only build, so it is dropped from the `lease` feature. Other consequences: * MSRV goes to 1.89 for `kubert` and the examples, as required by kube 4.2. The `kubert-prometheus-*` crates do not depend on kube and stay at 1.88. * kube-client replaced `rustls-native-certs` with `rustls-platform-verifier`, which pulls in `webpki-root-certs` under CDLA-Permissive-2.0; a crate-scoped license exception is added rather than widening the global allow list.
Member
Author
|
The motivation for this bump was to support gateway-api 1.5.1, but the latest gateway-api-rs (v0.21.0) requires kube 3.1.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
kube,kube-client,kube-core, andkube-runtimefrom 1.1 to 4.2.0, which requiresk8s-openapi0.28.k8s-openapi 0.28 replaced
chronowithjiffas its time library, sometav1::Timeandmetav1::MicroTimenow wrapjiff::Timestamp. This propagates to kubert's public API:lease::Claim::expirychanges fromchrono::DateTime<Utc>tojiff::Timestamp. Timestamp arithmetic in the lease manager now usesjiff::SignedDurationand saturates rather than panicking on overflow.chronois replaced byjiffas a dependency of bothkubertand the examples.kube 4.x boxes
StatusinError::Apiand deprecateskube_core::ErrorResponse, soLeaseManager::is_conflictnow uses theStatus::is_conflict()helper. That leaveshyperunused in a lease-only build, so it is dropped from theleasefeature.Other consequences:
kubertand the examples, as required by kube 4.2. Thekubert-prometheus-*crates do not depend on kube and stay at 1.88.rustls-native-certswithrustls-platform-verifier, which pulls inwebpki-root-certsunder CDLA-Permissive-2.0; a crate-scoped license exception is added rather than widening the global allow list.