Automation · GitOps
Desired State
Cheat sheet · https://pcornel.dk/topic.php?topic=5485
Answer
Desired state in GitOps is the configuration committed to the Git repository; the GitOps controller continuously works to make the live system match it.
Remember
- The Git commit is the desired state.
- The controller converges the cluster to it.
- Changes start in Git.
First checks
argocd app diff <app>— desired vs liveflux diff kustomization <name> --path <path>— Flux diff- Desired state per environment directory — structure
Verify in this order
git → desired manifests → compare live
Where it usually breaks
Configuration/input → graph/state refresh → plan → provider API request → provider terminal result → resource read-back → effective service state → workload.
GitOps → Desired State · operational reference
| Layer | GitOps → Desired State operational reference |
|---|---|
| Context identity | OpenGitOps Principles 1.0/current + 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=5485