fix(deps): update rust crate kube to v2 #96
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.69.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 #1704v0.98.0Compare Source
===================
Highlights
v1_32support viak8s-openapi0.24kube-deriveadditions:CELSchemaderive macro wrapper aroundJsonSchemafor injecting cel validations into the schema #1649servedandstoragebooleans for multiple versions ofCustomResourcederives: #1644kube-runtimeeventRecordernow aggregates repeat events #1655 (some breaking changes, see controller-rs#116)kube-clientUTF-16 edge case handling for windows #1654What's Changed
Added
storageandservedargument to derive macro by @Techassi in #1644derive(CELSchema)macro for generating cel validation on CRDs by @Danil-Grigorev in #1649Changed
runtimeevent recorder by @pando85 in #1655k8s-openapifor Kubernetesv1_32support and MSRV by @clux in #1671Fixed
v0.97.0Compare Source
===================
Highlights
CustomResourcederive added features for crd yaml output:aws-lc-rs(rustls crypto) provider #1617nulluser; #1608client-go#1603gzipviaConfig#1627thiserror,hashbrown,jsonptr,json-patch. Killedlazy_static/once_cellWhat's Changed
Added
Changed
Fixed
aws-lc-rsby @goenning in #1617v0.96.0Compare Source
===================
Highlights
webpki-rootsadded #1323, and predicates no longer requireunstable-runtime#1578towerandsecrecy, andderivativeswapped foreduceWhat's Changed
Added
ObjectRef::fromas alias for::from_objby @nightkr in #1598Changed
secrecyto 0.10 by @clux in #1588towerto 0.5.1 by @markdingram in #1589Removed
Fixed
v0.95.0Compare Source
===================
Kubernetes
v1_31support viak8s-openapi0.23Please upgrade k8s-openapi along with kube to avoid conflicts.
New minimum versions: MSRV 1.77.2, MK8SV: 1.26
What's Changed
Changed
k8s-openapito 0.23 for Kubernetes 1.31 support by @clux in #1581v0.94.2Compare Source
What's Changed
Fixes a runtime regression in
watch_object.Fixed
watch_objecthandles objects removed before init by @markdingram in #1577New Contributors
Full Changelog: kube-rs/kube@0.94.1...0.94.2
v0.94.1Compare Source
===================
What's Changed
Convenience release. Adjusted a version bound to avoid possibility of running into version compatibility errors with
hyper-rustls.Fixed
v0.94.0Compare Source
===================
Highlights
Support for
rustls's aws-lc-rs is available under a newkube/aws-lc-rsfeature. Via #1568 for #1562Furthermore, there are improvements to partial typing:
DeserializeGuardsafety wrapper to lift deserialisation errors (to e.g. not break watchers). See the errorbound example and core module module. Wrapped type be used with e.g.Api::<DeserializeGuard<CaConfigMap>>. Via #1556Resource;#[derive(Resource)]allows inheriting existingk8s-openapiresource implementations to avoid stepping down to the dynamic api. See the cert check example for usage. Via #1565What's Changed
Added
aws-lc-rsrustls feature by @mcluseau in #1568Resourcederive macro by @Danil-Grigorev in #1565Changed
v0.93.1Compare Source
===================
What's Changed
Fixed
v0.93.0Compare Source
===================
Highlights
Better query validation, better client header customisation, and two new modules:
core::labelsmodule for creating typed label selectors forListParamsorWatchParams. Can be constructed from a nativeLabelSelector, or directly from aSelectorofExpressions. PR.preludeto simplify imports of extension traits. PR.A big thank you to everyone who contributed to this release!
What's Changed
Added
Changed
Removed
Fixed
v0.92.1Compare Source
===================
Highlights
Better query validation, better client header customisation, and two new modules:
core::labelsmodule for creating typed label selectors forListParamsorWatchParams. Can be constructed from a nativeLabelSelector, or directly from aSelectorofExpressions. PR.preludeto simplify imports of extension traits. PR.A big thank you to everyone who contributed to this release!
What's Changed
Added
Changed
Removed
Fixed
v0.92.0Compare Source
===================
Bugfix Release
This release fixes #1524; a regression from 0.92.0 causing
watcherto skip pages on initial list. See #1525.It is recommended to upgrade from 0.92.0.
What's Changed
Fixed
v0.91.0Compare Source
===================
Kubernetes
v1_30support viak8s-openapi0.22Please upgrade k8s-openapi along with kube to avoid conflicts.
Unstable Stream Sharing
A more complete implementation that allows sharing
watcherstreams between multipleControllers (for #1080) has been added under theunstable-runtimefeature-flag in #1449 and #1483 by @mateiidavid. This represents the first usable implementation of shared streams (and replaces the older prototype part in #1470). While some changes are expected, you can check the shared_stream_controller example for a high-level overview.What's Changed
Added
Changed
k8s-openapito 0.22 and bump MK8SV to 1.25 by @clux in #1485Removed
StreamSubscribeimplementation by @clux in #1470Fixed
uniqueItemsproperty from CRDs when Sets are used by @sbernauer in #1484v0.90.0Compare Source
===================
Highlights
kube::client::BodyImprovementssize_hintandis_end_streamimplemented in #1452 + internal cleanups #1453 and #1455Dependency Cleanups
rustlsto 0.23 in #1457once_cellremoved in #1447 (no longer needed)futuresfeature prune in #1442chronofeatures prune in #1448, and bump its min version pin in #1458What's Changed
Added
Body::collect_bytesfor easier unit tests by @clux in #1445Changed
rustls0.23 by @tottoto in #1457Fixed
futuresfeature by @tottoto in #1442Body::emptyfor easier tests by @clux in #1444once_cellLazy with ordinary static by @tottoto in #1447chronofeatureclockwithnowby @tottoto in #1448http_bodytrait method by @tottoto in #1452chronoversion by @clux in #1458v0.89.0Compare Source
Upgrading
hyperandhttpto 1.0 and MSRV to1.75.0This release completes the hyper & http ecosystem upgrade #1351 via #1438. In particular, this change includes upgrades to
http,http-body,tower-http,hyper,hyper-openssl,hyper-rustls,hyper-socks2,hyper-timeout,tame-oauth,tokio-tungstenite,tower-http,rustls,rustls-pemfile, as well as adopting the newhyper_utilandhttp_body_utilto make the change.While this change constitutes significant internal churn (and a new
kube::client::Body), our external api remains largely unchanged. Some minor changes are necessary for custom clients, and for integration testing usingtower_mock. See the controller-rs upgrade pr or the examples folder in this commit for details.What's Changed
Added
Client::getandClient::listby @clux in #1375Changed
1.75.0by @clux in #1408reflectorto only request identifying metadata by @SOF3 in #1393jsonpath-rustto 0.5.0 by @clux in #1429Fixed
Kubeconfigallowcertificate_authority_datanot present inExecAuthClusterby @ljun20160606 in #1432Client::request_streamby @XciD in #1433New Contributors
Full Changelog: kube-rs/kube@0.88.1...0.89.0
v0.88.1Compare Source
===================
What's Changed
This is a bug fix release for a deserialization issue introduced in 0.88.0.
Fixed
ObjectListby @flavio in #1398v0.88.0Compare Source
===================
Kubernetes
v1_29support viak8s-openapi0.21Please upgrade k8s-openapi along with kube to avoid conflicts.
What's Changed
Added
Changed
k8s-openapifor Kubernetesv1_29support by @clux in #1394v0.87.2Compare Source
===================
What's Changed
Added
LogParams::since_timeby @clux in #1342Changed
jsonpath_libtojsonpath-rustby @ilya-bobyr in #1345v0.87.1Compare Source
===================
Headlines
Controllerissue with reconciliation requests disappearing when usingconcurrency#1324Clientwith better exec auth behaviour #1320, timeout control #1314, and socks5 proxy handling #1311syn2 #1307Big thanks to everyone involved 🎃
What's Changed
Added
socks5proxy inClientby @Razz4780 in #1311Changed
Controller::reconcile_onand removeErrinput requirement by @clux in #1304base64to0.21by @clux in #1308darlingandsynand rename#[kube(struct)]by @clux in #1307Fixed
KUBERNETES_EXEC_INFOenvironment variable passed to auth plugins by @Razz4780 in #1320Controller: pending messages are stuck in thescheduledmap by @co42 in #1324v0.86.0Compare Source
Headlines
k8s-openapi 0.20 for Kubernetes
v1_28Please note upstream api removals.
As usual, upgrade k8s-openapi along with kube to avoid issues.
Default TLS stack changed to
rustlsWith last year's upstream changes from rustls (closing all our existing rustls issues - see #1192), this is now the better choice for security, features, and ease of building. The previous default openssl stack can still be used with
default-features = falseplus theopenssl-tlsfeature.Controller Configuration
A controller
Confighas been added to allow tweaking two behaviour parameters (debouncing in #1265 and concurrency limits in #1277) of theController. Huge thanks to @aryan9600 for his work.Streaming Lists
The
sendInitialEventsalpha feature is now supported, and is quickly testable in the pod_watcher example when using the feature gate. This will help optimise the memory profile of controllers when the feature becomes generally available. Amazing work by first time contributor @casualjim.What's Changed
Added
controller::Configand debounce period to scheduler by @aryan9600 in #1265Changed
rustls-tlsby @clux in #1261Fixed
core: omit invalid resource version parameters when doing paged requests by @goenning in #1281New Contributors
Full Changelog: kube-rs/kube@0.85.0...0.86.0
v0.85.0Compare Source
===================
What's Changed
Added
WatchStreamExt::reflectto allow chaining on a reflector by @clux in #1252Configuration
📅 Schedule: Branch creation - "after 9pm,before 6am" in timezone Europe/Zurich, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.