3 ms·
The library used in the this post has gotten much better since this post was written (in 2019) Recently the ability to do `exec` and `attach` was added. It sho
by praveenperera 6y ago
The library used in the this post has gotten much better since this post was written (in 2019)
Recently the ability to do `exec` and `attach` was added. It should reach feature parity with the Go version soon once `port forward` is added.
https://github.com/clux/kube-rs https://github.com/clux/kube-rs
- ircoder 6y agoHmm! Interesting. I'm wondering if adding a test framework like kubebuilder is on the agenda. I'm not a great fan of it (kubebuilder) but the simple-to-use (in a relative term, i.e. as simple as it can get with Go) is a huge benefit. So you won't have to deploy after every build to see how your changes look like.
- praveenperera 6y agoI'm not sure about that, but the maintainers are very active and receptive so maybe make an issue? Better yet a PR.
- Nullabillity 6y agoWe don't currently support anything like Kubebuilder's envtest helper, but it is on our radar (and I finally got around to making an issue for it[0]). The rest of Kubebuilder's testing page seems to be general for Go's test framework (in which case Rust should have native equivalents). Disclaimer: Co-maintainer of kube-rs [0]: https://github.com/clux/kube-rs/issues/382 https://github.com/clux/kube-rs/issues/382
- Nullabillity 6y agoApart from that, the runtime module has also been overhauled completely since this blog post. In particular, the new `Controller`[0] adds a bunch of stuff over `Informer` to make it usable in production (merging duplicate queued events, parallel execution, delayed retries, fixed a bunch of internal race conditions, etc). We really need to make a 2020 edition of this blog post, but we do at least have an updated example controller.[1] (Not to dunk on TechnoSophos, none of that existed back when the blog post was written.) Disclaimer: Co-maintainer of kube-rs [0]: https://docs.rs/kube-runtime/0.47.0/kube_runtime/controller/struct.Controller.html https://docs.rs/kube-runtime/0.47.0/kube_runtime/controller/... [1]: https://github.com/clux/kube-rs/blob/8611e5cdd23d4ff487fdcea090e22343d57e4e56/examples/configmapgen_controller.rs https://github.com/clux/kube-rs/blob/8611e5cdd23d4ff487fdcea...