I'm trying to enhance my understanding of developing custom operators in Go and would love to see some examples of operators that you think have really solid codebases. I'm particularly interested in aspects such as how they manage finalization, handle status conditions, and implement logging or telemetry—basically, anything that reflects good clean code practices.
5 Answers
Make sure to check out the Kubebuilder docs at https://book.kubebuilder.io/. It’s packed with the info you’d need to answer many of your questions about operators.
Here are some more operators worth looking into:
- External secrets
- External DNS
- Flux (and I'd assume ArgoCD will be similar)
- Prometheus operator
- oh, and definitely the Victoria Labs project as well.
Check out the cloudnative-pg operator here: https://github.com/cloudnative-pg/cloudnative-pg. I also recommend looking at the OpenTelemetry operator: https://github.com/open-telemetry/opentelemetry-operator. Both have impressed me with their design!
Grafana Operator is a solid choice as well: https://github.com/grafana/grafana-operator. Just a heads up, though, it has an interesting backstory of its own! I've been part of some chaotic projects, and there's quite a tale here regarding its journey.
A great operator is cert-manager found at https://github.com/cert-manager/cert-manager. It’s exemplary for several reasons in the Go arena!
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically