Runtime Internals
This section covers what kube-runtime does under the hood. We examine the watcher's state machine, the reflector's atomic swap caching, the Controller's trigger-scheduler-runner pipeline, and the code generated by derive macros.
What This Section Covers
| Document | Key Question |
|---|---|
| Watcher | How does the state machine work, and how does it recover from errors? |
| Reflector and Store | How does the in-memory cache maintain consistency? |
| Controller Pipeline | What path does data take from trigger to reconciler? |
| CRDs and Derive Macros | What code does #[derive(CustomResource)] actually generate? |
If you have already understood kube's static structure from the Architecture section, this section follows what actually happens at runtime.