You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/upgrading.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,13 @@
1
1
# Upgrading
2
2
3
-
You can upgrade `kube`and it's sibling crate `k8s-openapi`using normal Rust methods to upgrade.
3
+
You can upgrade `kube`using normal Rust methods to upgrade, as long as you stick to semver compatible versions of `k8s-openapi`and `schemars` (if using custom resource derive).
4
4
5
-
!!! warning "`kube` and `k8s-openapi` are siblings"
5
+
!!! warning "Peer dependencies"
6
6
7
-
`kube` depends on `k8s-openapi`, but users need to select the Kubernetes version on `k8s-openapi`. Whenever `k8s-openapi` releases a new version, `kube` releases a new version shortly after.
7
+
`kube` depends on a handful of unstable crates at certain versions, but new versions of these crates have not always propagated into kube.
8
+
To avoid build issues, `k8s-openapi` and `schemars` must NOT exist at multiple semver incompatible versions in your dependency tree.
8
9
9
-
We recommend you bump both `kube` and `k8s-openapi` crates at the same time to avoid build issues.
10
+
We recommend you bump `kube`, `k8s-openapi` and `schemars` crates at the same time to avoid build issues.
10
11
11
12
Consider bumping the [[kubernetes-version]] feature pin on `k8s-openapi` unless you are using its `latest` feature.
12
13
@@ -15,12 +16,16 @@ Consider bumping the [[kubernetes-version]] feature pin on `k8s-openapi` unless
The major version of schemars 1 is expected to be released in the next Kubernetes version (1.34) in kube 2.0. Until then, if you need schemars 1, [pinning to git](https://github.com/kube-rs/kube/issues/1774#issuecomment-3072681555) is an option. Schemars 1 will not work with kube 1.
25
+
21
26
## Dependabot
22
27
23
-
[Configure](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file) the `cargo` ecosystem on dependabot and [group](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups)`kube` and `k8s-openapi` upgrades together:
28
+
[Configure](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file) the `cargo` ecosystem on dependabot and [group](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups)codependent crates:
0 commit comments