Automation · Source of Truth
Desired State
Cheat sheet · https://pcornel.dk/topic.php?topic=5854
Answer
Desired state in a source of truth is the intended configuration recorded there, such as which VLANs a port should carry, which automation turns into actual device configuration.
Remember
- The source of truth records intent, not observed state.
- Automation renders config from it.
- Changes start in the source.
First checks
- Intended config/state stored in SoT/git — intent
- Render configs from SoT — generation
- Compare intent with actual — drift
Verify in this order
SoT intent → generated config → device
Where it usually breaks
Configuration/input → graph/state refresh → plan → provider API request → provider terminal result → resource read-back → effective service state → workload.
Source of Truth → Desired State · operational reference
| Layer | Source of Truth → Desired State operational reference |
|---|---|
| Context identity | OpenGitOps 1.0 principles/current glossary + exact revision/input/target identity |
| Persistent intent | Versioned contract/configuration with explicit ownership and prerequisites |
| Verification | Validate inputs/read current state → exercise bounded operation → independent target read-back |
| Output contract | Preserve structured status/IDs/properties before human formatting |
| Failure boundary | Separate source/input/engine/controller execution from downstream target outcome |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5854