Automation · GitOps
Git as Source of Truth
Cheat sheet · https://pcornel.dk/topic.php?topic=5483
Answer
Git as source of truth means the repository is the only place configuration is changed. Manual changes to the live system are drift, reverted by reconciliation.
Remember
- Git is the only place changes are made.
- Manual changes count as drift.
- Git history is the audit trail.
First checks
git log --oneline -- <path>— changes- Branch protection and reviews — control
- No direct cluster changes (RBAC) — enforcement
Verify in this order
change → PR → merge → applied
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5483