fix(deps): update rust crate kube to v1 #94
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
->1.0.0
Release Notes
kube-rs/kube (kube)
v1.0.0
Compare 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 https://github.com/kube-rs/kube/issues/1688 for more information.
Kubernetes
v1_33
support viak8s-openapi
0.25Please upgrade k8s-openapi along with kube to avoid conflicts.
New minimum versions: MSRV 1.82.0, MK8SV: 1.30*
KubeSchema
The
CELSchema
alternate derive forJsonSchema
has been renamed toKubeSchema
to indicate the increased functionality.In addition to being able to inject CEL rules for validations, it can now also inject
x-kubernetes
properties such as merge-strategy via https://github.com/kube-rs/kube/pull/1750, handle#[validate]
attributes https://github.com/kube-rs/kube/pull/1749, and pass validation rules as string literals https://github.com/kube-rs/kube/pull/1754 :See kube.rs docs on validation for more info. Huge thanks to @Danil-Grigorev.
What's Changed
Added
hyper-util/tracing
feature flag by @cratelyn in https://github.com/kube-rs/kube/pull/1734Changed
x-kubernetes-*
schema extensions by @Danil-Grigorev in https://github.com/kube-rs/kube/pull/1750k8s-openapi
to0.25.0
by @clux in https://github.com/kube-rs/kube/pull/1756Removed
watcher::Event
into_iter_*
methods by @clux in https://github.com/kube-rs/kube/pull/1738Fixed
CELSchema
by @Danil-Grigorev in https://github.com/kube-rs/kube/pull/1747CELSchema
by @Danil-Grigorev in https://github.com/kube-rs/kube/pull/1749v0.99.0
Compare Source
===================
Highlights
Dependency Cleanups
backoff
(unmaintained) replaced withbackon
in https://github.com/kube-rs/kube/pull/1653default_backoff
natively, or throughController
.ExponentialBackoff
frombackon::ExponentialBuilder
intoWatchStreamExt::backoff
json-patch
bumped and uses re-exportedjsonptr
for less version clashes https://github.com/kube-rs/kube/pull/1718rand
dependency no longer explicit as only rng is underws
feature viatungstenite
'sclient::generate_key
https://github.com/kube-rs/kube/pull/1691ring
(still maintained) now optional forrustls-tls
feature (for alternateaws-lc-rs
) https://github.com/kube-rs/kube/pull/1717Features
v5.channel.k8s.io
streamingws
protocol to allow closing streams properly (kubernetes.io blog) https://github.com/kube-rs/kube/pull/1693CustomResource
derive; typed attributes for#[kube(scale)]
and#[kube(deprecated)]
in https://github.com/kube-rs/kube/pull/1656 + https://github.com/kube-rs/kube/pull/1697Client::with_valid_until
to handle short lived local client certs https://github.com/kube-rs/kube/pull/1707conditions
that can be awaited https://github.com/kube-rs/kube/pull/1710What's Changed
Added
Api::get_metadata_opt_with
by @sebsoto in https://github.com/kube-rs/kube/pull/1708Client::with_valid_until
for client cert expiry by @goenning in https://github.com/kube-rs/kube/pull/1707ExponentialBackoff
public by @gdeleon2 in https://github.com/kube-rs/kube/pull/1716Changed
backoff
withbackon
by @flavio in https://github.com/kube-rs/kube/pull/1653rand
to 0.9 by @clux in https://github.com/kube-rs/kube/pull/1686rand
dependency in favor oftungstenite
fn by @clux in https://github.com/kube-rs/kube/pull/1691json-patch
to 4 use bundledjsonptr
to 0.7 by @clux in https://github.com/kube-rs/kube/pull/1718Fixed
CustomResource
derive; allowstatus
attribute to take a path by @clux in https://github.com/kube-rs/kube/pull/1704v0.98.0
Compare Source
===================
Highlights
v1_32
support viak8s-openapi
0.24kube-derive
additions:CELSchema
derive macro wrapper aroundJsonSchema
for injecting cel validations into the schema #1649served
andstorage
booleans for multiple versions ofCustomResource
derives: #1644kube-runtime
eventRecorder
now aggregates repeat events #1655 (some breaking changes, see controller-rs#116)kube-client
UTF-16 edge case handling for windows #1654What's Changed
Added
storage
andserved
argument to derive macro by @Techassi in https://github.com/kube-rs/kube/pull/1644derive(CELSchema)
macro for generating cel validation on CRDs by @Danil-Grigorev in https://github.com/kube-rs/kube/pull/1649Changed
runtime
event recorder by @pando85 in https://github.com/kube-rs/kube/pull/1655k8s-openapi
for Kubernetesv1_32
support and MSRV by @clux in https://github.com/kube-rs/kube/pull/1671Fixed
v0.97.0
Compare Source
===================
Highlights
CustomResource
derive added features for crd yaml output:aws-lc-rs
(rustls crypto) provider #1617null
user; #1608client-go
#1603gzip
viaConfig
#1627thiserror
,hashbrown
,jsonptr
,json-patch
. Killedlazy_static
/once_cell
What's Changed
Added
Changed
Fixed
aws-lc-rs
by @goenning in https://github.com/kube-rs/kube/pull/1617v0.96.0
Compare Source
===================
Highlights
webpki-roots
added #1323, and predicates no longer requireunstable-runtime
#1578tower
andsecrecy
, andderivative
swapped foreduce
What's Changed
Added
ObjectRef::from
as alias for::from_obj
by @nightkr in https://github.com/kube-rs/kube/pull/1598Changed
secrecy
to 0.10 by @clux in https://github.com/kube-rs/kube/pull/1588tower
to 0.5.1 by @markdingram in https://github.com/kube-rs/kube/pull/1589Removed
Fixed
v0.95.0
Compare Source
===================
Kubernetes
v1_31
support viak8s-openapi
0.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-openapi
to 0.23 for Kubernetes 1.31 support by @clux in https://github.com/kube-rs/kube/pull/1581v0.94.2
Compare Source
What's Changed
Fixes a runtime regression in
watch_object
.Fixed
watch_object
handles objects removed before init by @markdingram in https://github.com/kube-rs/kube/pull/1577New Contributors
Full Changelog: kube-rs/kube@0.94.1...0.94.2
v0.94.1
Compare 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.0
Compare Source
===================
Highlights
Support for
rustls
's aws-lc-rs is available under a newkube/aws-lc-rs
feature. Via https://github.com/kube-rs/kube/pull/1568 for https://github.com/kube-rs/kube/issues/1562Furthermore, there are improvements to partial typing:
DeserializeGuard
safety 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 https://github.com/kube-rs/kube/pull/1556Resource
;#[derive(Resource)]
allows inheriting existingk8s-openapi
resource implementations to avoid stepping down to the dynamic api. See the cert check example for usage. Via https://github.com/kube-rs/kube/pull/1565What's Changed
Added
aws-lc-rs
rustls feature by @mcluseau in https://github.com/kube-rs/kube/pull/1568Resource
derive macro by @Danil-Grigorev in https://github.com/kube-rs/kube/pull/1565Changed
v0.93.1
Compare Source
===================
What's Changed
Fixed
v0.93.0
Compare Source
===================
Highlights
Better query validation, better client header customisation, and two new modules:
core::labels
module for creating typed label selectors forListParams
orWatchParams
. Can be constructed from a nativeLabelSelector
, or directly from aSelector
ofExpression
s. PR.prelude
to 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.1
Compare Source
===================
Bugfix Release
This release fixes #1524; a regression from 0.92.0 causing
watcher
to skip pages on initial list. See #1525.It is recommended to upgrade from 0.92.0.
What's Changed
Fixed
v0.92.0
Compare Source
===================
Runtime: Decreased Memory Usage from
watcher
Buffering of initial pages / init streams is no longer a mandatory process with
watcher::Event
gaining newInit
,InitApply
, andInitDone
events. These events are read on the store side maintaining the atomicity/completeness guarantees forreflector
andStore
users.This constitutes a significant memory decrease for all
watcher
users, and it has more details in a new kube.rs/blog post.The downside is a breaking change to
watcher::Event
. Plain usage ofwatcher
/reflector
/Controller
should generally not need to change anything, but custom stores / matches onwatcher::Event
will need an update. If you are writing custom stores, the new signals should be helpful for improved caching.Thanks to @fabriziosestito via Kubewarden for https://github.com/kube-rs/kube/pull/1494 . Follow-ups for this feature: https://github.com/kube-rs/kube/pull/1499 and https://github.com/kube-rs/kube/pull/1504.
Client: HTTP Proxy Support
Support is now introduced under the
http-proxy
feature pulling in hyper-http-proxy complementing the already existingsocks5
proxy feature.Thanks to @aviramha via MetalBear for the support in https://github.com/kube-rs/kube/pull/1496, with follow-ups https://github.com/kube-rs/kube/pull/1501 + https://github.com/kube-rs/kube/pull/1502
What's Changed
Added
Changed
tokio-tungstenite
to 0.23 by @Toasterson in https://github.com/kube-rs/kube/pull/1509watcher::Event
init/page variants by @clux in https://github.com/kube-rs/kube/pull/1504Fixed
hyper-proxy2
tohyper-http-proxy
by @aviramha in https://github.com/kube-rs/kube/pull/1502v0.91.0
Compare Source
===================
Kubernetes
v1_30
support viak8s-openapi
0.22Please upgrade k8s-openapi along with kube to avoid conflicts.
Unstable Stream Sharing
A more complete implementation that allows sharing
watcher
streams between multipleController
s (for https://github.com/kube-rs/kube/issues/1080) has been added under theunstable-runtime
feature-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-openapi
to 0.22 and bump MK8SV to 1.25 by @clux in https://github.com/kube-rs/kube/pull/1485Removed
StreamSubscribe
implementation by @clux in https://github.com/kube-rs/kube/pull/1470Fixed
uniqueItems
property from CRDs when Sets are used by @sbernauer in https://github.com/kube-rs/kube/pull/1484v0.90.0
Compare Source
===================
Highlights
kube::client::Body
Improvementssize_hint
andis_end_stream
implemented in #1452 + internal cleanups #1453 and #1455Dependency Cleanups
rustls
to 0.23 in #1457once_cell
removed in #1447 (no longer needed)futures
feature prune in #1442chrono
features prune in #1448, and bump its min version pin in #1458What's Changed
Added
Body::collect_bytes
for easier unit tests by @clux in https://github.com/kube-rs/kube/pull/1445Changed
rustls
0.23 by @tottoto in https://github.com/kube-rs/kube/pull/1457Fixed
futures
feature by @tottoto in https://github.com/kube-rs/kube/pull/1442Body::empty
for easier tests by @clux in https://github.com/kube-rs/kube/pull/1444once_cell
Lazy with ordinary static by @tottoto in https://github.com/kube-rs/kube/pull/1447chrono
featureclock
withnow
by @tottoto in https://github.com/kube-rs/kube/pull/1448http_body
trait method by @tottoto in https://github.com/kube-rs/kube/pull/1452chrono
version by @clux in https://github.com/kube-rs/kube/pull/1458v0.89.0
Compare Source
Upgrading
hyper
andhttp
to 1.0 and MSRV to1.75.0
This 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_util
andhttp_body_util
to 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::get
andClient::list
by @clux in https://github.com/kube-rs/kube/pull/1375Changed
1.75.0
by @clux in https://github.com/kube-rs/kube/pull/1408reflector
to only request identifying metadata by @SOF3 in https://github.com/kube-rs/kube/pull/1393jsonpath-rust
to 0.5.0 by @clux in https://github.com/kube-rs/kube/pull/1429Fixed
Kubeconfig
allowcertificate_authority_data
not present inExecAuthCluster
by @ljun20160606 in https://github.com/kube-rs/kube/pull/1432Client::request_stream
by @XciD in https://github.com/kube-rs/kube/pull/1433New Contributors
Full Changelog: kube-rs/kube@0.88.1...0.89.0
v0.88.1
Compare Source
===================
What's Changed
This is a bug fix release for a deserialization issue introduced in 0.88.0.
Fixed
ObjectList
by @flavio in https://github.com/kube-rs/kube/pull/1398v0.88.0
Compare Source
===================
Kubernetes
v1_29
support viak8s-openapi
0.21Please upgrade k8s-openapi along with kube to avoid conflicts.
What's Changed
Added
Changed
k8s-openapi
for Kubernetesv1_29
support by @clux in https://github.com/kube-rs/kube/pull/1394v0.87.2
Compare Source
===================
What's Changed
Added
LogParams::since_time
by @clux in https://github.com/kube-rs/kube/pull/1342Changed
jsonpath_lib
tojsonpath-rust
by @ilya-bobyr in https://github.com/kube-rs/kube/pull/1345v0.87.1
Compare Source
===================
Headlines
Controller
issue with reconciliation requests disappearing when usingconcurrency
#1324Client
with better exec auth behaviour #1320, timeout control #1314, and socks5 proxy handling #1311syn
2 #1307Big thanks to everyone involved 🎃
What's Changed
Added
socks5
proxy inClient
by @Razz4780 in https://github.com/kube-rs/kube/pull/1311Changed
Controller::reconcile_on
and removeErr
input requirement by @clux in https://github.com/kube-rs/kube/pull/1304base64
to0.21
by @clux in https://github.com/kube-rs/kube/pull/1308darling
andsyn
and rename#[kube(struct)]
by @clux in https://github.com/kube-rs/kube/pull/1307Fixed
KUBERNETES_EXEC_INFO
environment variable passed to auth plugins by @Razz4780 in https://github.com/kube-rs/kube/pull/1320Controller
: pending messages are stuck in thescheduled
map by @co42 in https://github.com/kube-rs/kube/pull/1324v0.86.0
Compare Source
Headlines
k8s-openapi 0.20 for Kubernetes
v1_28
Please note upstream api removals.
As usual, upgrade k8s-openapi along with kube to avoid issues.
Default TLS stack changed to
rustls
With last year's upstream changes from rustls (closing all our existing rustls issues - see https://github.com/kube-rs/kube/issues/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 = false
plus theopenssl-tls
feature.Controller Configuration
A controller
Config
has 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
sendInitialEvents
alpha 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::Config
and debounce period to scheduler by @aryan9600 in https://github.com/kube-rs/kube/pull/1265Changed
rustls-tls
by @clux in https://github.com/kube-rs/kube/pull/1261Fixed
core
: omit invalid resource version parameters when doing paged requests by @goenning in https://github.com/kube-rs/kube/pull/1281New Contributors
Full Changelog: kube-rs/kube@0.85.0...0.86.0
v0.85.0
Compare Source
===================
What's Changed
Added
WatchStreamExt::reflect
to allow chaining on a reflector by @clux in https://github.com/kube-rs/kube/pull/1252Changed
dirs-next
dependency to cargo-team maintainedhome
crate by @utkarshgupta137 in https://github.com/kube-rs/kube/pull/1207k8s-openapi
to0.19.0
forv1_27
support by @clux in https://github.com/kube-rs/kube/pull/1271Fixed
watcher
: returnNoResourceVersion
error if resource version is empty by @aryan9600 in https://github.com/kube-rs/kube/pull/1259scheduler
message when preponing by [@nightkr](https://redirectConfiguration
📅 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.