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-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,9 @@ Select a version of `kube` along matching versions of [k8s-openapi](https://gith
16
16
17
17
```toml
18
18
[dependencies]
19
-
kube = { version = "1", features = ["runtime", "derive"] }
20
-
schemars = { version = "0.8" }
21
-
k8s-openapi = { version = "0.25", features = ["latest", "schemars"] }
19
+
kube = { version = "2", features = ["runtime", "derive"] }
20
+
schemars = { version = "1" }
21
+
k8s-openapi = { version = "0.26", features = ["latest", "schemars"] }
22
22
```
23
23
24
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.
@@ -158,13 +158,13 @@ Uses [rustls](https://github.com/rustls/rustls) with `ring` provider (default) o
158
158
To switch [rustls providers](https://docs.rs/rustls/latest/rustls/crypto/struct.CryptoProvider.html), turn off `default-features` and enable the `aws-lc-rs` feature:
159
159
160
160
```toml
161
-
kube = { version = "1.1.0", default-features = false, features = ["client", "rustls-tls", "aws-lc-rs"] }
161
+
kube = { version = "2.0.0", default-features = false, features = ["client", "rustls-tls", "aws-lc-rs"] }
162
162
```
163
163
164
164
To switch to `openssl`, turn off `default-features`, and enable the `openssl-tls` feature:
165
165
166
166
```toml
167
-
kube = { version = "1.1.0", default-features = false, features = ["client", "openssl-tls"] }
167
+
kube = { version = "2.0.0", default-features = false, features = ["client", "openssl-tls"] }
168
168
```
169
169
170
170
This will pull in `openssl` and `hyper-openssl`. If `default-features` is left enabled, you will pull in two TLS stacks, and the default will remain as `rustls`.
0 commit comments