Skip to content
Mermaid templates

Operator Reconcile Loop

Custom controller reconciling spec vs status until they converge.

Template previewMermaid
Rendering…

Make it your own.

flowchart LR
W[Watch CRs] --> Q[Work queue]
Q --> R[Reconcile]
R --> Cur[Read current state]
R --> Desired[Read .spec]
Cur --> Diff{Match?}
Desired --> Diff
Diff -- yes --> Done[Update .status]
Diff -- no --> Act["Take action<br/>(create/update/delete)"]
Act --> Status[Update .status\n+ requeue]
Status --> Q
Done --> Done2[Exit]