What's wrong with the Golang-based operators? Why do you prefer Rust to be used in the operator?
Diversity is good.
I think it's a breath of opportunity to hear that there is tooling for Rust to write Kubernetes operators, previously my impression is that there is no match for Golang when it comes to writing operators, and that has invited me to try and learn Golang and the codegen that comes with writing operators, but I never enjoyed trying to learn things about Golang, the language feels like an exercise in ambiguous minimalism to me personally.
Re:A Kubernetes Operator in Rust
by rad_gruchalski on Tuesday April 18, 2023 @12:44PM
(#35616417)
> previously my impression is that there is no match for Golang when it comes to writing operators
Strimzi exists for some time and they use Java.
Have you tried using kube-rs? It removes many of the sharp edges of client-go, and is a pleasure to with with. It also has much tighter dependency discipline than the Go library.
There are other reasons to prefer Rust (sum types just to name one) but the quality of the Kubernetes client alone is enough to prefer it over Go in this case.
So what’s the usefulness of the above mentioned when library quality is like heaven and earth?
Nothing! It's just good to see some language diversity here.
kopf exists for python: https://github.com/nolar/kopf
Well done.