Delegating Kubernetes Operator: parent - child Custom Resource relationship

22 Views Asked by At

Let's say I have 2 operators, a Manager and Component operator. The Manager receives a Custom Resource with multiple nested resources:

kind: ManagerResource
spec:
    componentKind: ComponentA
    .... spec for componentA

and it's job is to delegate the handling of ComponentA to the Component operator. It also needs to watch for changes to ComponentA.

Is it possible to have the Manager operator invoke the Component operator on ComponentA, and then have them both watch the created resource? Any examples or details on how the protocol might work?

0

There are 0 best solutions below