Skip to content

Commit 88c1185

Browse files
authored
Merge branch 'main' into dependabot/github_actions/clechasseur/rs-clippy-check-5
2 parents 2a3e644 + bed80fb commit 88c1185

File tree

2 files changed

+47
-11
lines changed

2 files changed

+47
-11
lines changed

CHANGELOG.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,44 @@
55
<!-- next-header -->
66
UNRELEASED
77
===================
8-
* see https://github.com/kube-rs/kube/compare/1.1.0...main
8+
* see https://github.com/kube-rs/kube/compare/2.0.0...main
9+
10+
[2.0.0](https://github.com/kube-rs/kube/releases/tag/2.0.0) / 2025-09-08
11+
===================
12+
<!-- Release notes generated using configuration in .github/release.yml at 2.0.0 -->
13+
## Kubernetes `v1_34` support via `k8s-openapi` [0.26](https://github.com/Arnavion/k8s-openapi/blob/master/CHANGELOG.md#v0260-2025-09-06)
14+
Please [upgrade k8s-openapi along with kube](https://kube.rs/upgrading/) to avoid conflicts.
15+
16+
## Schemars [1.0](https://github.com/GREsau/schemars/releases/tag/v1.0.0)
17+
A fairly significant upgrade in https://github.com/kube-rs/kube/pull/1780. Our external facing API should be unchanged, although some schemars public import paths have changed. Note that **if** you are implementing `schemars` traits directly, then see the upstream [schemars/migrating](https://graham.cool/schemars/migrating/) (and maybe consider using [`KubeSchema`](https://docs.rs/kube/latest/kube/derive.KubeSchema.html) for relevant [schema overrides](https://kube.rs/controllers/admission/#x_kube-validation)).
18+
19+
Please [upgrade schemars along with kube](https://kube.rs/upgrading/) for this version to avoid conflicts.
20+
21+
## New Minimums
22+
Minimum versions: [MSRV](https://kube.rs/rust-version/) 1.85.0 (for [edition 2024](https://github.com/kube-rs/kube/pull/1785)), [MK8SV](https://kube.rs/kubernetes-version/): 1.30 ([unchanged](https://github.com/kube-rs/kube/pull/1756)).
23+
24+
## Highlights
25+
This version is contains fixes, dependency clearups, and dependency updates. Noteworthy additions are `TryFrom` impls for `Kubeconfig` users in #1801, and a namespace accessor in `Api` in #1788
26+
27+
## New Major
28+
A new semver major for unstable, public facing dependency updates. As per the new [release cycle](https://kube.rs/stability/#major-release-cycle), it is aligned with the Kubernetes release.
29+
30+
## What's Changed
31+
### Added
32+
* Add `TryFrom` conversions for `Kubeconfig` -> `Config` -> `Client` by @Danil-Grigorev in https://github.com/kube-rs/kube/pull/1801
33+
* Add pub fn namespace(&self) -> Option<&str> to Api by @tgrushka in https://github.com/kube-rs/kube/pull/1788
34+
### Changed
35+
* Update to schemars 1.0 by @Danil-Grigorev in https://github.com/kube-rs/kube/pull/1780
36+
* Bump Rust Edition to 2024 and MSRV to 1.85 by @clux in https://github.com/kube-rs/kube/pull/1785
37+
* Replace `hyper-socks2` with `hyper-util` client-proxy feature by @tottoto in https://github.com/kube-rs/kube/pull/1795
38+
* Bump k8s-openapi to 0.26.0 by @clux in https://github.com/kube-rs/kube/pull/1817
39+
### Fixed
40+
* Clamp scheduling delay to 6 months by @dervoeti in https://github.com/kube-rs/kube/pull/1779
41+
* Update admission example and pin to a local crd by @clux in https://github.com/kube-rs/kube/pull/1782
42+
* Fix interactive auth mode to allow prompt messages by @gememma in https://github.com/kube-rs/kube/pull/1800
43+
* Make kube::runtime::controller::Action ctors const by @imp in https://github.com/kube-rs/kube/pull/1804
44+
* Fix oidc with openssl by @saif-88 in https://github.com/kube-rs/kube/pull/1807
45+
946

1047
[1.1.0](https://github.com/kube-rs/kube/releases/tag/1.1.0) / 2025-05-26
1148
===================

scripts/release-afterdoc.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,20 @@ main() {
99
fi
1010
local -r RELNAME="$1"
1111
local -r RELEASE="$(curl -sSL -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/kube-rs/kube/releases/tags/${RELNAME}")"
12-
local -r RELREG="$(echo "${RELNAME}" | sd -s "." "\.")"
12+
# local -r RELREG="$(echo "${RELNAME}" | sd -s "." "\.")"
1313
local -r HURL="$(echo "${RELEASE}" | jq '.html_url' -r)"
1414
# Skipping New Contributors highight from CHANGELOG + across repos for brevity and to avoid pinging them excessively
1515
local -r BODY="$(echo "${RELEASE}" | jq '.body' -r | sd "## New Contributors[\w\W]*$" "")"
16-
if grep -E "^${RELREG} / " CHANGELOG.md; then
17-
# We only run the script if the headline is unchanged (done at the end)
1816

19-
# Add in the body first
20-
sd "(^${RELREG} / [\d-]+\n===================\n)" "\$1${BODY}" CHANGELOG.md
21-
# fix newlines issues caused last jq/sd combo: (^M at end of lines)
22-
sd "\r" "" CHANGELOG.md
17+
# Add in the body first
18+
sd "(^UNRELEASED\n===================\n \* see https://.*\.\.\.main)" "\${1}\n\nXXXYYYZZZ${BODY}" CHANGELOG.md
19+
# fix newlines issues caused last jq/sd combo: (^M at end of lines)
20+
sd "\r" "" CHANGELOG.md
2321

24-
# Link the headline
25-
sd "^${RELREG} / " "[${RELNAME}](${HURL}) / " CHANGELOG.md
26-
fi
22+
# Link the headline
23+
sd "(^XXXYYYZZZ)" "[${RELNAME}](${HURL}) / $(date '+%F')\n===================\n" CHANGELOG.md
24+
# Update compare url
25+
sd "(\* see https://.*/kube/compare/).+\.\.\.main" "\${1}${RELNAME}...main" CHANGELOG.md
2726
}
2827

2928
# This script ports manual RELEASE notes into the CHANGELOG post publishing

0 commit comments

Comments
 (0)