sky-lattice/docs/recipes/fix-drift.md

21 lines
627 B
Markdown
Raw Normal View History

# How To Fix Drift
Compare live inventory to desired intent and decide what to adopt or leave unmanaged.
## Steps
1. Export or maintain `observed/inventory.yaml` with objects `{kind, name}`.
2. Run `platformctl drift --inventory observed/inventory.yaml`.
3. For leftovers you will not manage yet:
```bash
platformctl decision add --applies-to unmanaged.role.LEGACY_ANALYST --rationale "..."
```
Add them under `intent.unmanaged` with that `decision_id`.
4. For gaps that should exist, `platformctl plan` and apply.
## Expected results
Discover report in `observed/discover-latest.yaml` with classifications.