kube icon indicating copy to clipboard operation
kube copied to clipboard

Add client wasm support

Open vaijira opened this issue 2 years ago • 1 comments

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

vaijira avatar Mar 14 '22 15:03 vaijira

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.

nightkr avatar Mar 14 '22 15:03 nightkr