1. Reconciliation as step chains
- Status: Accepted
- Date: 2026-04
Context
A workspace needs about seven Kubernetes objects that depend on each other: the volumes must exist before the pod, the certificate before the Envoy sidecar can start, the pod before its NetworkPolicy labels can be checked. Any of them can fail independently, and both users and administrators need to see where a workspace stands, not just whether it is ready. Deletion has the same shape in reverse and needs a finalizer.
Decision
The operator is built on genop-runtime, which models reconciliation as an
ordered chain of apply steps and deletion steps. Each step owns one
concern and one status condition, and returns Succeed, Requeue or Fail.
The framework handles the finalizer, the Ready condition,
observedGeneration, exponential backoff and Kubernetes events. When every
step’s condition is True, a reconcile re-runs all steps as a drift check.
Consequences
- Each concern is small, isolated and unit-tested on its own.
- A workspace’s status shows exactly which step it is waiting on, and every step emits events that the dashboard displays.
- Steps that already succeeded are skipped until the whole chain is
True. Every step must therefore be able to report success, or the resource is never drift-checked and stops reacting to changes; see ADR 0009. - The operator depends on genop-runtime and follows its upgrades.