Update Rust crate kube to v2 #22
Open
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.
This PR contains the following updates:
0.98.0→2.0.0Release Notes
kube-rs/kube (kube)
v2.0.1Compare Source
===================
What's Changed
Fixes an accidental inclusion of a constraint added to
Api::log_streamintroduced in the 2.0.0 Rust 2024 upgrade.Fixed
v2.0.0Compare Source
===================
Kubernetes
v1_34support viak8s-openapi0.26Please upgrade k8s-openapi along with kube to avoid conflicts.
Schemars 1.0
A fairly significant upgrade in #1780. Our external facing API should be unchanged, although some schemars public import paths have changed. Note that if you are implementing
schemarstraits directly, then see the upstream schemars/migrating (and maybe consider usingKubeSchemafor relevant schema overrides).Please upgrade schemars along with kube for this version to avoid conflicts.
New Minimums
Minimum versions: MSRV 1.85.0 (for edition 2024), MK8SV: 1.30 (unchanged).
Highlights
This version is contains fixes, dependency clearups, and dependency updates. Noteworthy additions are
TryFromimpls forKubeconfigusers in #1801, and a namespace accessor inApiin #1788New Major
A new semver major for unstable, public facing dependency updates. As per the new release cycle, it is aligned with the Kubernetes release.
What's Changed
Added
TryFromconversions forKubeconfig->Config->Clientby @Danil-Grigorev in #1801Changed
hyper-socks2withhyper-utilclient-proxy feature by @tottoto in #1795Fixed
v1.1.0Compare Source
===================
What's Changed
Missing attribute bugfix + extra standard derives on core::conversion structs.
Added
Fixed
#[schemars(crate)]attribute by @Techassi in #1764v1.0.0Compare Source
A Major Version
It's been a long time coming, but time has come to draw the line in the sand. No alphas, no betas. Hope it finds you all well. Thanks to everyone who has contributed over the years.
This is a somewhat symbolic gesture, because semver-breaking changes are still hard to avoid with a large set of sub-1.0 dependencies we need to bump, as well as managing the large api surface of Kubernetes.
Therefore, the plan is to align our breaking changes and major bumps with Kubernetes versions / k8s-openapi versions for now, and this should allow our other releases to stream in. See #1688 for more information.
Kubernetes
v1_33support viak8s-openapi0.25Please upgrade k8s-openapi along with kube to avoid conflicts.
New minimum versions: MSRV 1.82.0, MK8SV: 1.30*
KubeSchema
The
CELSchemaalternate derive forJsonSchemahas been renamed toKubeSchemato indicate the increased functionality.In addition to being able to inject CEL rules for validations, it can now also inject
x-kubernetesproperties such as merge-strategy via #1750, handle#[validate]attributes #1749, and pass validation rules as string literals #1754 :See kube.rs docs on validation for more info. Huge thanks to @Danil-Grigorev.
What's Changed
Added
hyper-util/tracingfeature flag by @cratelyn in #1734Changed
x-kubernetes-*schema extensions by @Danil-Grigorev in #1750k8s-openapito0.25.0by @clux in #1756Removed
watcher::Eventinto_iter_*methods by @clux in #1738Fixed
CELSchemaby @Danil-Grigorev in #1747CELSchemaby @Danil-Grigorev in #1749New Contributors
Full Changelog: kube-rs/kube@0.99.0...1.0.0
v0.99.0Compare Source
===================
Highlights
Dependency Cleanups
backoff(unmaintained) replaced withbackonin #1653default_backoffnatively, or throughController.ExponentialBackofffrombackon::ExponentialBuilderintoWatchStreamExt::backoffjson-patchbumped and uses re-exportedjsonptrfor less version clashes #1718randdependency no longer explicit as only rng is underwsfeature viatungstenite'sclient::generate_key#1691ring(still maintained) now optional forrustls-tlsfeature (for alternateaws-lc-rs) #1717Features
v5.channel.k8s.iostreamingwsprotocol to allow closing streams properly (kubernetes.io blog) #1693CustomResourcederive; typed attributes for#[kube(scale)]and#[kube(deprecated)]in #1656 + #1697Client::with_valid_untilto handle short lived local client certs #1707conditionsthat can be awaited #1710What's Changed
Added
Api::get_metadata_opt_withby @sebsoto in #1708Client::with_valid_untilfor client cert expiry by @goenning in #1707ExponentialBackoffpublic by @gdeleon2 in #1716Changed
backoffwithbackonby @flavio in #1653randto 0.9 by @clux in #1686randdependency in favor oftungstenitefn by @clux in #1691json-patchto 4 use bundledjsonptrto 0.7 by @clux in #1718Fixed
CustomResourcederive; allowstatusattribute to take a path by @clux in #1704Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.