Skip to content

cant find exec method? #1055

Answered by clux
Masber asked this question in Q&A
Discussion options

You must be logged in to vote

Api::exec requires the ws 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 to

kube = { version = "0.74.0", features = ["runtime", "derive", "native-tls", "ws"] }

should fix it.

Separate note; native-tls is removed in the next version (via #1044).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Masber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants