Skip to content

Commit

Permalink
v0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnavion committed Aug 9, 2021
1 parent 2e2e6c3 commit 8b9ee50
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 10 deletions.
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
# v0.13.0 (2021-08-09)

## k8s-openapi

- BREAKING CHANGE: The change from v0.12.0 to make `Option<Vec<T>>` and `Option<BTreeMap<K, V>>` fields into `Vec<T>` and `BTreeMap<K, V>` fields has been reverted, because there is at least one case where a resource type needs to be serialized with an empty `Vec` field. See https://github.com/Arnavion/k8s-openapi/issues/103

- BREAKING CHANGE: Added support for Kubernetes 1.22 under the `v1_22` feature.

- BREAKING CHANGE: Fixed `api::core::v1::Pod::connect_get_namespaced_pod_exec` to take its optional `command` parameter as `Option<&'a [String]>` instead of `Option<&'a str>`

- BREAKING CHANGE: Fixed `api::core::v1::ServiceSpec`'s `clusterIPs` field to be correctly emitted as `cluster_ips` instead of `cluster_i_ps`

- FEATURE: The new `schemars` crate feature enables impls of `schemars::JsonSchema` on all resource types.

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.20
- v1.19.13
- v1.20.9
- v1.21.3
- v1.22.0

## k8s-openapi-codegen-common

- BREAKING CHANGE: `k8s_openapi_codegen_common::run` now takes an additional parameter to indicate whether the generated code of resource types should contain an impl of `schemars::JsonSchema` or not.

## k8s-openapi-derive

- FEATURE: The `#[derive(CustomResourceDefinition)]` custom derive now recognizes a new attribute `#[custom_resource_definition(generate_schema)]`. If this attribute is provided, the generated custom resource type will also implement `schemars::JsonSchema`. The `schemars` feature of the `k8s-openapi` crate must have been enabled.

---

# v0.12.0 (2021-06-15)

## k8s-openapi
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ K8S_RECORD=1 ./test.sh all run-tests
cargo rustdoc --features 'v1_22' -- -A 'rustdoc::bare_urls' -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.12.x &&
cp -R ./target/doc ../k8s-openapi-gh-pages/v0.12.x
rm -rf ../k8s-openapi-gh-pages/v0.13.x &&
cp -R ./target/doc ../k8s-openapi-gh-pages/v0.13.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.12.0"
version = "0.13.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.12.x/k8s_openapi/"
documentation = "https://arnavion.github.io/k8s-openapi/v0.13.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.12.0"
links = "k8s-openapi-0.13.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.12.0"
version = "0.13.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.12.x/k8s_openapi_codegen_common/"
documentation = "https://arnavion.github.io/k8s-openapi/v0.13.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.12.0"
version = "0.13.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.12.x/k8s_openapi_derive/"
documentation = "https://arnavion.github.io/k8s-openapi/v0.13.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.12.0", path = "../k8s-openapi-codegen-common" }
k8s-openapi-codegen-common = { version = "=0.13.0", path = "../k8s-openapi-codegen-common" }
proc-macro2 = "1"
quote = "1"
syn = { version = "1", features = ["extra-traits"] }
Expand Down

0 comments on commit 8b9ee50

Please sign in to comment.