From cd7e00e9afdc35960e3b6549451ebeda76a6644a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teo=20Klestrup=20R=C3=B6ijezon?= Date: Fri, 28 Oct 2022 09:23:57 +0200 Subject: [PATCH 1/2] release 0.76.0 --- CHANGELOG.md | 7 +++++-- README.md | 4 ++-- e2e/Cargo.toml | 2 +- examples/Cargo.toml | 4 ++-- kube-client/Cargo.toml | 4 ++-- kube-core/Cargo.toml | 2 +- kube-derive/Cargo.toml | 2 +- kube-derive/README.md | 2 +- kube-runtime/Cargo.toml | 4 ++-- kube/Cargo.toml | 10 +++++----- 10 files changed, 22 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10ab8335e..8d66fdc9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,10 @@ 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 / 2022-10-28 +=================== [0.75.0](https://github.com/kube-rs/kube/releases/tag/0.75.0) / 2022-09-21 =================== @@ -16,7 +19,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`: diff --git a/README.md b/README.md index eafde558a..41bb64c52 100644 --- a/README.md +++ b/README.md @@ -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"] } ``` @@ -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"] } ``` diff --git a/e2e/Cargo.toml b/e2e/Cargo.toml index 112be7e22..f7541b71e 100644 --- a/e2e/Cargo.toml +++ b/e2e/Cargo.toml @@ -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"] } diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 047e6eafc..8c11ecab2 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -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" diff --git a/kube-client/Cargo.toml b/kube-client/Cargo.toml index d03ce1c04..ba644c03c 100644 --- a/kube-client/Cargo.toml +++ b/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 ", @@ -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"] } diff --git a/kube-core/Cargo.toml b/kube-core/Cargo.toml index 26c51898d..3cb7dc845 100644 --- a/kube-core/Cargo.toml +++ b/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 ", "kazk ", diff --git a/kube-derive/Cargo.toml b/kube-derive/Cargo.toml index 2c4be77ff..bc191e180 100644 --- a/kube-derive/Cargo.toml +++ b/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 ", "kazk ", diff --git a/kube-derive/README.md b/kube-derive/README.md index b40819f73..8d076c3c5 100644 --- a/kube-derive/README.md +++ b/kube-derive/README.md @@ -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 diff --git a/kube-runtime/Cargo.toml b/kube-runtime/Cargo.toml index 12be090c7..1ae2f1b03 100644 --- a/kube-runtime/Cargo.toml +++ b/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 ", @@ -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" diff --git a/kube/Cargo.toml b/kube/Cargo.toml index cceb0c20b..7921ff9d2 100644 --- a/kube/Cargo.toml +++ b/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 ", @@ -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 From e104bea2233b5bd0977aab444b8c5a36181b4791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teo=20Klestrup=20R=C3=B6ijezon?= Date: Fri, 28 Oct 2022 09:53:11 +0200 Subject: [PATCH 2/2] 0.76.0 changelog --- CHANGELOG.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d66fdc9f..41ac9074a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,34 @@ UNRELEASED =================== * see https://github.com/kube-rs/kube/compare/0.76.0...main -0.76.0 / 2022-10-28 +[0.76.0](https://github.com/kube-rs/kube/releases/tag/0.76.0) / 2022-10-28 =================== + + +## 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 ===================