Skip to content

Commit

Permalink
v0.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnavion committed Sep 7, 2023
1 parent 7a0e1b4 commit 52da260
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 11 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
# v0.20.0 (2023-09-07)

## k8s-openapi

- BREAKING CHANGE: This release removes all associated methods of resource types that mapped API operations. For example, there is no more `fn api::core::v1::Pod::list()`, and all types related to API operations like `ListOptional` and `ResponseBody` have also been removed. See https://github.com/Arnavion/k8s-openapi/issues/149 for more details.

- BREAKING CHANGE: Added support for Kubernetes 1.28 under the `v1_28` feature.

- BREAKING CHANGE: Dropped support for Kubernetes 1.20 and 1.21.

Corresponding Kubernetes API server versions:

- v1.22.17
- v1.23.17
- v1.24.17
- v1.25.13
- v1.26.8
- v1.27.5
- v1.28.1

## k8s-openapi-codegen-common

- BREAKING CHANGE: `write_operation` and other things related to emitting API operations have been removed.

## k8s-openapi-derive

- BREAKING CHANGE: The generated resource type no longer has associated clientset methods for listing etc.

---

# v0.19.0 (2023-08-05)

## k8s-openapi
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ K8S_RECORD=1 ./test.sh all run-tests
1. `/k8s-openapi-derive/Cargo.toml`: Update `package.version` value
1. `/k8s-openapi-derive/Cargo.toml`: Update `package.documentation` value
1. `/k8s-openapi-derive/Cargo.toml`: Update version req of `k8s-openapi-codegen-common` dependency
1. Generate docs (change feature and directory name as appropriate).
1. Generate docs (change directory name as appropriate).

```sh
rm -rf ./target/doc/ &&
cargo rustdoc --features 'latest' -- -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.19.x &&
cp -R ./target/doc ../k8s-openapi-gh-pages/v0.19.x
rm -rf ../k8s-openapi-gh-pages/v0.20.x &&
cp -R ./target/doc ../k8s-openapi-gh-pages/v0.20.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.19.0"
version = "0.20.0"
license = "Apache-2.0"
authors = ["Arnav Singh <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.19.x/k8s_openapi/"
documentation = "https://arnavion.github.io/k8s-openapi/v0.20.x/k8s_openapi/"
edition = "2021"
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.19.0"
links = "k8s-openapi-0.20.0"

[dependencies]
base64 = { version = "0.21", default-features = false, features = [
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.19.0"
version = "0.20.0"
license = "Apache-2.0"
authors = ["Arnav Singh <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.19.x/k8s_openapi_codegen_common/"
documentation = "https://arnavion.github.io/k8s-openapi/v0.20.x/k8s_openapi_codegen_common/"
edition = "2021"
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.19.0"
version = "0.20.0"
license = "Apache-2.0"
authors = ["Arnav Singh <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.19.x/k8s_openapi_derive/"
documentation = "https://arnavion.github.io/k8s-openapi/v0.20.x/k8s_openapi_derive/"
edition = "2021"
keywords = ["client", "kubernetes", "k8s", "http"]
readme = "README.md"
Expand All @@ -19,7 +19,7 @@ include = [

[dependencies]
http = { version = "0.2", default-features = false }
k8s-openapi-codegen-common = { version = "=0.19.0", path = "../k8s-openapi-codegen-common" }
k8s-openapi-codegen-common = { version = "=0.20.0", path = "../k8s-openapi-codegen-common" }
proc-macro2 = { version = "1", default-features = false, features = ["proc-macro"] }
quote = { version = "1", default-features = false }
syn = { version = "2", default-features = false, features = [
Expand Down

0 comments on commit 52da260

Please sign in to comment.