Skip to content

Commit

Permalink
Merge branch 'main' into controllabl_exec
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Oct 28, 2022
2 parents 50623f0 + e104bea commit 3c16a8e
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 19 deletions.
33 changes: 31 additions & 2 deletions CHANGELOG.md
Expand Up @@ -5,7 +5,36 @@
<!-- next-header -->
UNRELEASED
===================
* see https://github.com/kube-rs/kube/compare/0.75.0...main
* see https://github.com/kube-rs/kube/compare/0.76.0...main

[0.76.0](https://github.com/kube-rs/kube/releases/tag/0.76.0) / 2022-10-28
===================
<!-- Release notes generated using configuration in .github/release.yml at 0.76.0 -->

## Highlights

### [`#[derive(CustomResource)]` now supports schemas with untagged enums](https://github.com/kube-rs/kube/pull/1028)

Expanding on our existing support for storing Rust's struct enums in CRDs, Kube will now try to convert `#[serde(untagged)]` enums as well. Note that if the same field is present in multiple untagged variants then they must all have the same shape.

### [Removed deprecated `try_flatten_*` functions](https://github.com/kube-rs/kube/pull/1019)

These have been deprecated since 0.72, and are replaced by the equivalent `WatchStreamExt` methods.

## What's Changed
### Added
* Adds example to `Controller::watches` by @Dav1dde in https://github.com/kube-rs/kube/pull/1026
* Discovery: Add `ApiGroup::resources_by_stability` by @imuxin in https://github.com/kube-rs/kube/pull/1022
* Add support for untagged enums in CRDs by @sbernauer in https://github.com/kube-rs/kube/pull/1028
* Derive PartialEq for DynamicObject by @pbzweihander in https://github.com/kube-rs/kube/pull/1048
### Removed
* Runtime: Remove deprecated util `try_flatten_` helpers by @clux in https://github.com/kube-rs/kube/pull/1019
* Remove `native-tls` feature by @kazk in https://github.com/kube-rs/kube/pull/1044
### Fixed
* add fieldManager querystring to all operations by @goenning in https://github.com/kube-rs/kube/pull/1031
* Add verify_tls1x_signature for NoCertVerification by @rvql in https://github.com/kube-rs/kube/pull/1034
* Fix compatibility with schemars' preserve_order feature by @teozkr in https://github.com/kube-rs/kube/pull/1050
* Hoist enum values from subschemas by @teozkr in https://github.com/kube-rs/kube/pull/1051

[0.75.0](https://github.com/kube-rs/kube/releases/tag/0.75.0) / 2022-09-21
===================
Expand All @@ -16,7 +45,7 @@ UNRELEASED
### [Upgrade `k8s-openapi` to 0.16 for Kubernetes 1.25](https://github.com/kube-rs/kube/pull/1008)

The update to [k8s-openapi@0.16.0](https://github.com/Arnavion/k8s-openapi/blob/master/CHANGELOG.md#v0160-2022-09-15) makes this the first release with **tentative** Kubernetes 1.25 support.
While the new structs and apis now exist, we **recommend holding off** on using 1.25 until a [deserialization bug in the apiserver](https://github.com/kubernetes/kubernetes/issues/111985) is resolved upstream. See #997 / #1008 for details.
While the new structs and apis now exist, we **recommend holding off** on using 1.25 until a [deserialization bug in the apiserver](https://github.com/kubernetes/kubernetes/issues/111985) is resolved upstream. See [#997](https://github.com/kube-rs/kube/issues/997) / [#1008](https://github.com/kube-rs/kube/issues/1008) for details.

To upgrade, ensure you bump both `kube` and `k8s-openapi`:

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -16,7 +16,7 @@ Select a version of `kube` along with the generated [k8s-openapi](https://github

```toml
[dependencies]
kube = { version = "0.75.0", features = ["runtime", "derive"] }
kube = { version = "0.76.0", features = ["runtime", "derive"] }
k8s-openapi = { version = "0.16.0", features = ["v1_25"] }
```

Expand Down Expand Up @@ -152,7 +152,7 @@ Kube has basic support ([with caveats](https://github.com/kube-rs/kube/issues?q=

```toml
[dependencies]
kube = { version = "0.75.0", default-features = false, features = ["client", "rustls-tls"] }
kube = { version = "0.76.0", default-features = false, features = ["client", "rustls-tls"] }
k8s-openapi = { version = "0.16.0", features = ["v1_25"] }
```

Expand Down
2 changes: 1 addition & 1 deletion e2e/Cargo.toml
Expand Up @@ -28,7 +28,7 @@ anyhow = "1.0.44"
tracing = "0.1.29"
tracing-subscriber = "0.3.3"
futures = "0.3.17"
kube = { path = "../kube", version = "^0.75.0", default-features = false, features = ["client", "runtime", "ws", "admission", "gzip"] }
kube = { path = "../kube", version = "^0.76.0", default-features = false, features = ["client", "runtime", "ws", "admission", "gzip"] }
k8s-openapi = { version = "0.16.0", default-features = false }
serde_json = "1.0.68"
tokio = { version = "1.14.0", features = ["full"] }
4 changes: 2 additions & 2 deletions examples/Cargo.toml
Expand Up @@ -29,8 +29,8 @@ validator = { version = "0.16.0", features = ["derive"] }
anyhow = "1.0.44"
futures = "0.3.17"
jsonpath_lib = "0.3.0"
kube = { path = "../kube", version = "^0.75.0", default-features = false, features = ["admission"] }
kube-derive = { path = "../kube-derive", version = "^0.75.0", default-features = false } # only needed to opt out of schema
kube = { path = "../kube", version = "^0.76.0", default-features = false, features = ["admission"] }
kube-derive = { path = "../kube-derive", version = "^0.76.0", default-features = false } # only needed to opt out of schema
k8s-openapi = { version = "0.16.0", default-features = false }
serde = { version = "1.0.130", features = ["derive"] }
serde_json = "1.0.68"
Expand Down
4 changes: 2 additions & 2 deletions kube-client/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "kube-client"
version = "0.75.0"
version = "0.76.0"
description = "Kubernetes client"
authors = [
"clux <sszynrae@gmail.com>",
Expand Down Expand Up @@ -53,7 +53,7 @@ rustls = { version = "0.20.3", features = ["dangerous_configuration"], optional
rustls-pemfile = { version = "1.0.0", optional = true }
bytes = { version = "1.1.0", optional = true }
tokio = { version = "1.14.0", features = ["time", "signal", "sync"], optional = true }
kube-core = { path = "../kube-core", version = "=0.75.0" }
kube-core = { path = "../kube-core", version = "=0.76.0" }
jsonpath_lib = { version = "0.3.0", optional = true }
tokio-util = { version = "0.7.0", optional = true, features = ["io", "codec"] }
hyper = { version = "0.14.13", optional = true, features = ["client", "http1", "stream", "tcp"] }
Expand Down
2 changes: 1 addition & 1 deletion kube-core/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "kube-core"
description = "Kube shared types, traits and client-less behavior"
version = "0.75.0"
version = "0.76.0"
authors = [
"clux <sszynrae@gmail.com>",
"kazk <kazk.dev@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion kube-derive/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "kube-derive"
description = "Custom derives for the kube kubernetes crates"
version = "0.75.0"
version = "0.76.0"
authors = [
"clux <sszynrae@gmail.com>",
"kazk <kazk.dev@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion kube-derive/README.md
Expand Up @@ -6,7 +6,7 @@ Add the `derive` feature to `kube`:

```toml
[dependencies]
kube = { version = "0.75.0", feature = ["derive"] }
kube = { version = "0.76.0", feature = ["derive"] }
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions kube-runtime/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "kube-runtime"
version = "0.75.0"
version = "0.76.0"
description = "Kubernetes futures controller runtime"
authors = [
"Teo Klestrup Röijezon <teo@nullable.se>",
Expand All @@ -21,7 +21,7 @@ rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
futures = "0.3.17"
kube-client = { path = "../kube-client", version = "=0.75.0", default-features = false, features = ["jsonpatch", "client"] }
kube-client = { path = "../kube-client", version = "=0.76.0", default-features = false, features = ["jsonpatch", "client"] }
derivative = "2.1.1"
serde = "1.0.130"
smallvec = "1.7.0"
Expand Down
10 changes: 5 additions & 5 deletions kube/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "kube"
version = "0.75.0"
version = "0.76.0"
description = "Kubernetes client and async controller runtime"
authors = [
"clux <sszynrae@gmail.com>",
Expand Down Expand Up @@ -35,10 +35,10 @@ features = ["client", "rustls-tls", "openssl-tls", "derive", "ws", "oauth", "jso
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
kube-derive = { path = "../kube-derive", version = "=0.75.0", optional = true }
kube-core = { path = "../kube-core", version = "=0.75.0" }
kube-client = { path = "../kube-client", version = "=0.75.0", default-features = false, optional = true }
kube-runtime = { path = "../kube-runtime", version = "=0.75.0", optional = true}
kube-derive = { path = "../kube-derive", version = "=0.76.0", optional = true }
kube-core = { path = "../kube-core", version = "=0.76.0" }
kube-client = { path = "../kube-client", version = "=0.76.0", default-features = false, optional = true }
kube-runtime = { path = "../kube-runtime", version = "=0.76.0", optional = true}

# Not used directly, but required by resolver 2.0 to ensure that the k8s-openapi dependency
# is considered part of the "deps" graph rather than just the "dev-deps" graph
Expand Down

0 comments on commit 3c16a8e

Please sign in to comment.