Kubernetes has already implemented and standardized this pattern: any developer can define a custom desired state (CRD) and write a controller that continuously reconciles it with reality.

Ref

A reconciliation loop continuously observes actual state, compares it to desired state, and takes the minimum action to close the gap. If actual drifts — the loop corrects automatically.