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: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,16 @@ These crates build upon Kubernetes [apimachinery](https://github.com/kubernetes/
12
12
13
13
## Installation
14
14
15
-
Select a version of `kube` along with the generated[k8s-openapi](https://github.com/Arnavion/k8s-openapi) structs at your chosen [Kubernetes version](https://kube.rs/kubernetes-version/):
15
+
Select a version of `kube` along matching versions of[k8s-openapi](https://github.com/Arnavion/k8s-openapi)and [schemars](https://github.com/GREsau/schemars) for Kubernetes structs and matching schemas. See also historical [Kubernetes versions](https://kube.rs/kubernetes-version/).
16
16
17
17
```toml
18
18
[dependencies]
19
-
kube = { version = "1.1.0", features = ["runtime", "derive"] }
20
-
k8s-openapi = { version = "0.25.0", features = ["latest"] }
19
+
kube = { version = "1", features = ["runtime", "derive"] }
20
+
schemars = { version = "0.8" }
21
+
k8s-openapi = { version = "0.25", features = ["latest", "schemars"] }
21
22
```
22
23
23
-
See [features](https://kube.rs/features/) for a quick overview of default-enabled / opt-in functionality.
24
+
See [features](https://kube.rs/features/) for a quick overview of default-enabled / opt-in functionality. You can remove `schemars` parts if you do not need the `kube/derive` feature.
0 commit comments