I'm wanting to level up my skills in building custom operators and would love to see examples of well-architected ones. Specifically, I'm curious about how these operators manage things like finalization, status conditions, and logging or telemetry while keeping clean code practices in mind. Any recommendations?
3 Answers
You should definitely check out the CloudNativePG operator and the OpenTelemetry operator. They both have solid implementations that might give you a good idea of best practices.
The Grafana Operator is also worth a look. Just a heads up though, there’s some backstory to it that a few people might know about. Still, despite the chaos, their code has remained pretty good quality!
One of my favorites is cert-manager. It's really well documented and has a clean architecture. I think you'll find a lot of great patterns in its codebase.
Haha, I can imagine! Sometimes the end product can surprise you, even if the journey was rough.