-
Hi, I am quite new to Rust and trying this library to talk to my k8s cluster. I would like to be able to run
Version used
My problem is that the compiler complains
Any idea why? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Modifying your kube = { version = "0.74.0", features = ["runtime", "derive", "native-tls", "ws"] } should fix it. Separate note; |
Beta Was this translation helpful? Give feedback.
Api::exec
requires thews
feature which is not enabled by default https://docs.rs/kube-client/0.75.0/src/kube_client/api/subresource.rs.html#357-378 since it pulls in some extra dependencies for the streaming protocol.Modifying your
Cargo.toml
kube line toshould fix it.
Separate note;
native-tls
is removed in the next version (via #1044).