Skip to content

Commit

Permalink
v0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnavion committed Jan 23, 2021
1 parent 18ce5e5 commit a3b11f6
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 11 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# v0.11.0 (2021-01-23)

- BREAKING CHANGE: This version partially reverts the change in v0.9.0 that made `k8s_openapi::apimachinery::pkg::apis::meta::v1::WatchEvent<T>` require `T: k8s_openapi::Resource`; now it only requires `T: serde::Deserialize<'de>` once more. This has been done to make it possible to use `WatchEvent` with custom user-provided resource types that do not implement `k8s_openapi::Resource`.

The `k8s_openapi::Resource` bound in v0.9.0 was added to be able to enforce that the `WatchEvent::<T>::Bookmark` events contain the correct `apiVersion` and `kind` fields for the specified `T` during deserialization. Without the bound now, it is no longer possible to do that. So it is now possible to deserialize, say, a `WatchEvent::<Pod>::Bookmark` as a `WatchEvent::<Node>::Bookmark` without any runtime error. Take care to deserialize `watch_*` API responses into the right `k8s_openapi::WatchResponse<T>` type, such as by relying on the returned `k8s_openapi::ResponseBody<T>` as documented in the crate docs.

- BREAKING CHANGE: The `bytes` dependency has been updated to match the `tokio` v1 ecosystem.

- FEATURE: Added support for Kubernetes 1.20 under the `v1_20` feature.

Corresponding Kubernetes API server versions:

- v1.11.10
- v1.12.10
- v1.13.12
- v1.14.10
- v1.15.12
- v1.16.15
- v1.17.17
- v1.18.15
- v1.19.7
- v1.20.2

---

# v0.10.0 (2020-10-11)

- FEATURE: Added support for Kubernetes 1.19 under the `v1_19` feature.
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ The repository supports the latest patch versions of each of the separate 1.x re

```sh
rm -rf ./target/doc/ &&
cargo rustdoc --features 'v1_20' -- -Z unstable-options --enable-index-page &&
cargo rustdoc --features 'v1_20' -- -A non_autolinks -Z unstable-options --enable-index-page &&
CARGO_TARGET_DIR="$(realpath ./target)" cargo rustdoc --manifest-path ./k8s-openapi-codegen-common/Cargo.toml -- -Z unstable-options --enable-index-page &&
CARGO_TARGET_DIR="$(realpath ./target)" cargo rustdoc --manifest-path ./k8s-openapi-derive/Cargo.toml -- -Z unstable-options --enable-index-page &&
rm -rf ../k8s-openapi-gh-pages/v0.10.x &&
cp -R ./target/doc ../k8s-openapi-gh-pages/v0.10.x
rm -rf ../k8s-openapi-gh-pages/v0.11.x &&
cp -R ./target/doc ../k8s-openapi-gh-pages/v0.11.x
```

1. `../k8s-openapi-gh-pages/index.html`: Add new anchor if this is a new major release
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "k8s-openapi"
version = "0.10.0"
version = "0.11.0"
license = "Apache-2.0"
authors = ["Arnavion <me@arnavion.dev>"]
categories = ["api-bindings", "web-programming::http-client"]
description = "Bindings for the Kubernetes client API"
documentation = "https://arnavion.github.io/k8s-openapi/v0.10.x/k8s_openapi/"
documentation = "https://arnavion.github.io/k8s-openapi/v0.11.x/k8s_openapi/"
edition = "2018"
keywords = ["client", "kubernetes", "k8s", "http"]
readme = "README.md"
Expand All @@ -25,7 +25,7 @@ include = [
# to enumerate all env vars looking for one with `DEP_K8S_OPENAPI_` prefix and `_VERSION` suffix, instead of looking it up by its whole name.
#
# See https://github.com/rust-lang/cargo/issues/3544 for being able to pass metadata to downstream without setting this key.
links = "k8s-openapi-0.10.0"
links = "k8s-openapi-0.11.0"

[dependencies]
base64 = "0.13"
Expand Down
4 changes: 2 additions & 2 deletions k8s-openapi-codegen-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "k8s-openapi-codegen-common"
version = "0.10.0"
version = "0.11.0"
license = "Apache-2.0"
authors = ["Arnavion <me@arnavion.dev>"]
categories = ["api-bindings", "web-programming::http-client"]
description = "Common code for the k8s-openapi code generator and k8s-openapi-derive"
documentation = "https://arnavion.github.io/k8s-openapi/v0.10.x/k8s_openapi_codegen_common/"
documentation = "https://arnavion.github.io/k8s-openapi/v0.11.x/k8s_openapi_codegen_common/"
edition = "2018"
keywords = ["client", "kubernetes", "k8s", "http"]
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions k8s-openapi-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "k8s-openapi-derive"
version = "0.10.0"
version = "0.11.0"
license = "Apache-2.0"
authors = ["Arnavion <me@arnavion.dev>"]
categories = ["api-bindings", "web-programming::http-client"]
description = "Custom derives for the Kubernetes client API"
documentation = "https://arnavion.github.io/k8s-openapi/v0.10.x/k8s_openapi_derive/"
documentation = "https://arnavion.github.io/k8s-openapi/v0.11.x/k8s_openapi_derive/"
edition = "2018"
keywords = ["client", "kubernetes", "k8s", "http"]
readme = "README.md"
Expand All @@ -19,7 +19,7 @@ include = [

[dependencies]
http = "0.2"
k8s-openapi-codegen-common = { version = "=0.10.0", path = "../k8s-openapi-codegen-common" }
k8s-openapi-codegen-common = { version = "=0.11.0", path = "../k8s-openapi-codegen-common" }
proc-macro2 = "1"
quote = "1"
syn = { version = "1", features = ["extra-traits"] }
Expand Down

0 comments on commit a3b11f6

Please sign in to comment.