News for hackers. Stuff that matters.
Re:Writing a Kubernetes Operator by remram on Thursday March 09, 2023 @01:56PM (#35085081)
Did you call your CRD "Deployment"?
Re:Writing a Kubernetes Operator by ojhughes on Friday March 10, 2023 @03:09AM (#35091813)
It’s a common pattern [1]. Other than the GP patch example, how else can users override the child objects you’re controller creates?

1 https://github.com/prometheus-operator/prometheus-operator/b...

Re:Writing a Kubernetes Operator by remram on Friday March 10, 2023 @10:32AM (#35095619)
I'm not saying they shouldn't customize their PodSpec, I'm saying if they do, your controller is exactly the same as the built-in Deployment controller, running user-provided pods. Why build a copy of it?
Re:Writing a Kubernetes Operator by ojhughes on Friday March 10, 2023 @11:22AM (#35096472)
Because it’s an aggregate of a number of different resources types and custom logic not exactly the same as deployment.

I can see you don’t like operators and that’s fine. Many folks find it’s a useful pattern to follow