kube
kube copied to clipboard
Add client wasm support
Would you like to work on this feature?
maybe
What problem are you trying to solve?
I was trying to access a k8s cluster with this api in a wasm app but this library cannot be configured to use the browser connection, for the moment it is native.
Describe the solution you'd like
Add a feature to support wasm, using for https://github.com/rustwasm/gloo/tree/master/crates/net.
Describe alternatives you've considered
None.
Documentation, Adoption, Migration Strategy
No response
Target crate for feature
kube-client
In the near term I expect simplest way to do this to be using kube::Client::new
with a custom tower stack that delegates to fetch
(via gloo
or some other wrapper). I don't think this should require too many changes on our end, apart from maybe having a toggle to disable the default hyper
client.