Skip to content

Commit

Permalink
release 0.58.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clux committed Jul 5, 2021
1 parent 0eb2943 commit 732e5f9
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 37 deletions.
23 changes: 13 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
<!-- next-header -->
UNRELEASED
===================
* see https://github.com/clux/kube-rs/compare/0.57.0...master
* `kube`: `BREAKING`: subresource marker traits renamed conjugation: `Log`, `Execute`, `Attach`, `Evict` (previously `Logging`, `Executable`, `Attachable`, `Evictable`) - #536 via #560
* `kube-derive` added `#[kube(category)]` attr to set [CRD categories](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#categories) - #559
* `kube-runtime` added `finalizer` helper #291 via #475
* `kube-runtime` added tracing for why reconciliations happened #457 via #571
* `kube-runtime` added `Controller::reconcile_all_on` to allow scheduling all objects for reconciliation #551 via #555
* `kube-runtime` added `Controller::graceful_shutdown_on` for shutting down the `Controller` while waiting for running reconciliations to finish - #552 via #573
* see https://github.com/clux/kube-rs/compare/0.58.0...master

0.58.0 / 2021-07-05
===================
* `kube`: `BREAKING`: subresource marker traits renamed conjugation: `Log`, `Execute`, `Attach`, `Evict` (previously `Logging`, `Executable`, `Attachable`, `Evictable`) - [#536](https://github.com/clux/kube-rs/issues/536) via [#560](https://github.com/clux/kube-rs/issues/560)
* `kube-derive` added `#[kube(category)]` attr to set [CRD categories](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#categories) - [#559](https://github.com/clux/kube-rs/issues/559)
* `kube-runtime` added `finalizer` helper [#291](https://github.com/clux/kube-rs/issues/291) via [#475](https://github.com/clux/kube-rs/issues/475)
* `kube-runtime` added tracing for why reconciliations happened [#457](https://github.com/clux/kube-rs/issues/457) via [#571](https://github.com/clux/kube-rs/issues/571)
* `kube-runtime` added `Controller::reconcile_all_on` to allow scheduling all objects for reconciliation [#551](https://github.com/clux/kube-rs/issues/551) via [#555](https://github.com/clux/kube-rs/issues/555)
* `kube-runtime` added `Controller::graceful_shutdown_on` for shutting down the `Controller` while waiting for running reconciliations to finish - [#552](https://github.com/clux/kube-rs/issues/552) via [#573](https://github.com/clux/kube-rs/issues/573)
- BREAKING: `controller::applier` now starts a graceful shutdown when the `queue` terminates
- BREAKING: `scheduler` now shuts down immediately when `requests` terminates, rather than waiting for the pending reconciliations to drain
* `kube-runtime` added tracking for reconciliation reason
- Added: `Controller::owns_with` and `Controller::watches_with` to pass a `dyntype` argument for dynamic `Api`s - #575
- Added: `Controller::owns_with` and `Controller::watches_with` to pass a `dyntype` argument for dynamic `Api`s - [#575](https://github.com/clux/kube-rs/issues/575)
- BREAKING: `controller::trigger_*` now returns a `ReconcileRequest` rather than `ObjectRef`. The `ObjectRef` can be accessed via the `obj_ref` field

### Known Issues
- Api::replace can fail to unset list values with k8s-openapi 0.12 #581
- Api::replace can fail to unset list values with k8s-openapi 0.12 [#581](https://github.com/clux/kube-rs/issues/581)

0.57.0 / 2021-06-16
===================
Expand All @@ -31,7 +34,7 @@ UNRELEASED
- BREAKING: `kube::Resource` trait now requires a `plural` implementation

### Known Issues
- Api::replace can fail to unset list values with k8s-openapi 0.12 #581
- Api::replace can fail to unset list values with k8s-openapi 0.12 [#581](https://github.com/clux/kube-rs/issues/581)

0.56.0 / 2021-06-05
===================
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Select a version of `kube` along with the generated [k8s-openapi](https://github

```toml
[dependencies]
kube = "0.57.0"
kube-runtime = "0.57.0"
kube = "0.58.0"
kube-runtime = "0.58.0"
k8s-openapi = { version = "0.12.0", default-features = false, features = ["v1_20"] }
```

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

```toml
[dependencies]
kube = { version = "0.57.0", default-features = false, features = ["client", "rustls-tls"] }
kube-runtime = { version = "0.57.0" }
kube = { version = "0.58.0", default-features = false, features = ["client", "rustls-tls"] }
kube-runtime = { version = "0.58.0" }
k8s-openapi = { version = "0.12.0", default-features = false, features = ["v1_20"] }
```

Expand Down
8 changes: 4 additions & 4 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ tokio-util = "0.6.0"
anyhow = "1.0.37"
env_logger = "0.8.2"
futures = "0.3.8"
kube = { path = "../kube", version = "^0.57.0", default-features = false, features = ["admission"] }
kube-derive = { path = "../kube-derive", version = "^0.57.0", default-features = false } # only needed to opt out of schema
kube-runtime = { path = "../kube-runtime", version = "^0.57.0"}
kube-core = { path = "../kube-core", version = "^0.57.0", default-features = false }
kube = { path = "../kube", version = "^0.58.0", default-features = false, features = ["admission"] }
kube-derive = { path = "../kube-derive", version = "^0.58.0", default-features = false } # only needed to opt out of schema
kube-runtime = { path = "../kube-runtime", version = "^0.58.0"}
kube-core = { path = "../kube-core", version = "^0.58.0", default-features = false }
k8s-openapi = { version = "0.12.0", features = ["v1_20"], default-features = false }
log = "0.4.11"
serde = { version = "1.0.118", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion kube-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "kube-core"
description = "Kube shared types, traits and client-less behavior"
version = "0.57.0"
version = "0.58.0"
authors = [
"clux <[email protected]>",
"kazk <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion kube-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "kube-derive"
description = "Custom derives for the kube kubernetes crates"
version = "0.57.0"
version = "0.58.0"
authors = [
"clux <[email protected]>",
"kazk <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion kube-derive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Add the `derive` feature to `kube`:

```toml
[dependencies]
kube = { version = "0.57.0", feature = ["derive"] }
kube = { version = "0.58.0", feature = ["derive"] }
```

## Usage
Expand Down
8 changes: 4 additions & 4 deletions kube-runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kube-runtime"
version = "0.57.0"
version = "0.58.0"
description = "Kubernetes futures controller runtime"
authors = [
"Teo Klestrup Röijezon <[email protected]>",
Expand All @@ -14,7 +14,7 @@ edition = "2018"

[dependencies]
futures = "0.3.8"
kube = { path = "../kube", version = "^0.57.0", default-features = false, features = ["jsonpatch", "client"] }
kube = { path = "../kube", version = "^0.58.0", default-features = false, features = ["jsonpatch", "client"] }
derivative = "2.1.1"
serde = "1.0.118"
smallvec = "1.6.0"
Expand All @@ -32,8 +32,8 @@ version = "0.12.0"
default-features = false

[dev-dependencies]
kube-derive = { path = "../kube-derive", version = "^0.57.0"}
kube-core = { path = "../kube-core", version = "^0.57.0"}
kube-derive = { path = "../kube-derive", version = "^0.58.0"}
kube-core = { path = "../kube-core", version = "^0.58.0"}
serde_json = "1.0.61"
tokio = { version = "1.0.1", features = ["full", "test-util"] }
rand = "0.8.0"
Expand Down
6 changes: 3 additions & 3 deletions kube/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kube"
version = "0.57.0"
version = "0.58.0"
description = "Kubernetes client and futures controller runtime"
authors = [
"clux <[email protected]>",
Expand Down Expand Up @@ -56,8 +56,8 @@ rustls-pemfile = { version = "0.2.1", optional = true }
webpki = { version = "0.21.4", optional = true }
bytes = { version = "1.0.0", optional = true }
tokio = { version = "1.0.1", features = ["time", "signal", "sync"], optional = true }
kube-derive = { path = "../kube-derive", version = "^0.57.0", optional = true }
kube-core = { path = "../kube-core", version = "^0.57.0"}
kube-derive = { path = "../kube-derive", version = "^0.58.0", optional = true }
kube-core = { path = "../kube-core", version = "^0.58.0"}
jsonpath_lib = { version = "0.3.0", optional = true }
tokio-util = { version = "0.6.0", optional = true, features = ["io", "codec"] }
hyper = { version = "0.14.8", optional = true, features = ["client", "http1", "stream", "tcp"] }
Expand Down
15 changes: 7 additions & 8 deletions release.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Release process:
# 1. PUBLISH_GRACE_SLEEP=30 cargo release minor
# 2. verify that all crates are bumped and versions are in-line before proceeding
# 3a. await publishing - failures can happen due to still https://github.com/sunng87/cargo-release/issues/224 (but should not with sufficient grace-sleep)
# 3b. fix failures from 3a (resume publishing manually, cd into dir, cargo publish, wait, continue for next in line)
# 4. check the consolidated commit (and commit message, templating fails now)
# 0. (optional) cargo release minor --dry-run ; verify that all crates are bumped and versions in-line before proceeding
# 1. (optional) git reset --hard
# 2. PUBLISH_GRACE_SLEEP=30 cargo release minor
# 3a. await publishing - failures can happen due to https://github.com/sunng87/cargo-release/issues/224 (but should not with sufficient grace-sleep)
# 3b. if failures from 3a; (resume publishing manually, cd into next dir, cargo publish, wait, continue for next in line)
# 4. git amend consolidated commit and add the unified version https://github.com/sunng87/cargo-release/issues/222
# 5. ./postrelease.sh

# Reference
Expand All @@ -13,9 +14,7 @@
consolidate-commits = true
no-dev-version = true # bumps happen right before release
pre-release-hook = ["../prerelease.sh"]
# figure out which one actually triggers here (TODO: raise a bug about 4)
post-release-commit-message = "Release {{version}}"
pre-release-commit-message = "release {{version}}"
pre-release-commit-message = "release"
# leave tagging to postrelease script (due to potential failures in 3 and 4)
disable-push = true
disable-tag = true
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "dapp.rs"
anyhow = "1.0.37"
env_logger = "0.8.2"
futures = "0.3.8"
kube = { path = "../kube", version = "^0.57.0"}
kube = { path = "../kube", version = "^0.58.0"}
k8s-openapi = { version = "0.12.0", features = ["v1_20"], default-features = false }
log = "0.4.11"
serde_json = "1.0.61"
Expand Down

0 comments on commit 732e5f9

Please sign in to comment.