Skip to content

Commit

Permalink
sync release
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Jul 23, 2024
1 parent e7ed273 commit 2426217
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
33 changes: 32 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,38 @@
<!-- DO NOT touch the headers, UNRELEAS'D line, or compare url manually - they are sed'd -->
<!-- next-header -->
## Unreleased
* see https://github.com/kube-rs/kube/compare/0.92.0...main
* see https://github.com/kube-rs/kube/compare/0.93.1...main

## [0.93.1](https://github.com/kube-rs/kube/releases/tag/0.93.1) / 2024-07-23
<!-- Release notes generated using configuration in .github/release.yml at 0.93.1 -->

## What's Changed
### Fixed
* add missing feature gate on ConfigExt for no-features build by @HoKim98 in https://github.com/kube-rs/kube/pull/1549

## [0.93.0](https://github.com/kube-rs/kube/releases/tag/0.93.0) / 2024-07-22
<!-- Release notes generated using configuration in .github/release.yml at 0.93.0 -->

## Highlights
Better [query validation](https://github.com/kube-rs/kube/pull/1541), better [client header customisation](https://github.com/kube-rs/kube/pull/1523), and two new modules:

1. [`core::labels`](https://docs.rs/kube/latest/kube/core/labels/index.html) module for creating typed label selectors for [`ListParams`](https://docs.rs/kube/latest/kube/core/params/struct.ListParams.html#method.labels_from) or [`WatchParams`](https://docs.rs/kube/latest/kube/core/params/struct.WatchParams.html#method.labels_from). Can be constructed from a native [`LabelSelector`](https://docs.rs/k8s-openapi/latest/k8s_openapi/apimachinery/pkg/apis/meta/v1/struct.LabelSelector.html), or directly from a [`Selector`](https://docs.rs/kube/latest/kube/core/struct.Selector.html) of [`Expression`](https://docs.rs/kube/latest/kube/core/enum.Expression.html)s. [PR](https://github.com/kube-rs/kube/pull/1539).
2. [`prelude`](https://docs.rs/kube/latest/kube/prelude/index.html) to simplify imports of extension traits. [PR](https://github.com/kube-rs/kube/pull/1539).

A big thank you to everyone who contributed to this release!

## What's Changed
### Added
* add option to provide headers to send as client by @aviramha in https://github.com/kube-rs/kube/pull/1523
* Add prelude for blanket and extension traits across sub-crates by @Danil-Grigorev in https://github.com/kube-rs/kube/pull/1527
* Label selector support by @Danil-Grigorev in https://github.com/kube-rs/kube/pull/1539
### Changed
* Update garde requirement from 0.19.0 to 0.20.0 by @dependabot in https://github.com/kube-rs/kube/pull/1535
### Removed
* runtime: remove deprecated default_backoff by @clux in https://github.com/kube-rs/kube/pull/1518
### Fixed
* Fix watcher not fully paginating on Init by @clux in https://github.com/kube-rs/kube/pull/1525 (ported to 0.92.1)
* Prevent empty string object name requests from being sent to the apiserver by @xMAC94x in https://github.com/kube-rs/kube/pull/1541

## [0.92.1](https://github.com/kube-rs/kube/releases/tag/0.92.1) / 2024-06-19
## Bugfix Release
Expand Down
8 changes: 4 additions & 4 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Select a version of `kube` along with the generated [k8s-openapi](https://github

```toml
[dependencies]
kube = { version = "0.92.0", features = ["runtime", "derive"] }
kube = { version = "0.93.1", features = ["runtime", "derive"] }
k8s-openapi = { version = "0.22.0", features = ["latest"] }
```

Expand Down Expand Up @@ -88,7 +88,7 @@ The `runtime` module exports the `kube_runtime` crate and contains higher level

### Watchers

A low level streaming interface (similar to informers) that presents `Applied`, `Deleted` or `Restarted` events.
A streaming interface (similar to informers) that presents [`watcher::Event`](https://docs.rs/kube/latest/kube/runtime/watcher/enum.Event.html)s and does automatic relists under the hood.

```rust
let api = Api::<Pod>::default_namespaced(client);
Expand All @@ -103,7 +103,7 @@ while let Some(event) = stream.try_next().await? {
}
```

NB: the plain items in a `watcher` stream are different from `WatchEvent`. If you are following along to "see what changed", you should flatten it with one of the utilities from [`WatchStreamExt`](https://docs.rs/kube/latest/kube/runtime/trait.WatchStreamExt.html), such as `applied_objects`.
Note the base items from a `watcher` stream are an abstraction above the native `WatchEvent` to allow for store buffering. If you are following along to "see what changed", you can use utilities from [`WatchStreamExt`](https://docs.rs/kube/latest/kube/runtime/trait.WatchStreamExt.html), such as `applied_objects` to get a more conventional stream.

## Reflectors

Expand Down Expand Up @@ -145,7 +145,7 @@ By default [rustls](https://github.com/rustls/rustls) is used for TLS, but `open

```toml
[dependencies]
kube = { version = "0.92.0", default-features = false, features = ["client", "openssl-tls"] }
kube = { version = "0.93.1", default-features = false, features = ["client", "openssl-tls"] }
k8s-openapi = { version = "0.22.0", features = ["latest"] }
```

Expand Down

0 comments on commit 2426217

Please sign in to comment.