Re:Ask HN: Good examples of Kubernetes operators codebase?
by Kreotiko on Thursday October 21, 2021 @03:56PM
(#28950052)
I am the person who asked and I was probably unclear. I mentioned the operator sdk because that is what I am trying at the moment but I am open to other approaches so this example is welcome
Re:Ask HN: Good examples of Kubernetes operators codebase?
by brancz on Friday October 22, 2021 @11:24AM
(#28958393)
In that case I recommend using client-go directly. In my admittedly limited experience with operator sdk (which was created long after the Prometheus operator), it tries to abstract a lot of things to make things like working with operator lifecycle manager (OLM) easier, but also causes a lot of (to me) unnatural interfaces and sometimes downright prevented me from doing things I needed to do because things were abstracted and hidden too much. We’ve attempted to migrate Prometheus operator several times but never successfully.
(Full disclosure, I’m the co-creator and one of the maintainers of prometheus operator)