Pieter
|
0c4d536246
|
feat: Add version tracking and maintenance monitoring (issue #15)
Complete implementation of automatic version tracking and drift detection:
New Scripts:
- scripts/collect-client-versions.sh: Query deployed versions from Docker
- Connects via Ansible to running servers
- Extracts versions from container images
- Updates registry automatically
- scripts/check-client-versions.sh: Compare versions across clients
- Multiple formats: table (colorized), CSV, JSON
- Filter by outdated versions
- Highlights drift with color coding
- scripts/detect-version-drift.sh: Identify version differences
- Detects clients with outdated versions
- Threshold-based staleness detection (default 30 days)
- Actionable recommendations
- Exit code 1 if drift detected (CI/monitoring friendly)
Updated Scripts:
- scripts/deploy-client.sh: Auto-collect versions after deployment
- scripts/rebuild-client.sh: Auto-collect versions after rebuild
Documentation:
- docs/maintenance-tracking.md: Complete maintenance guide
- Version management workflows
- Security update procedures
- Monitoring integration examples
- Troubleshooting guide
Features:
✅ Automatic version collection from deployed servers
✅ Multi-client version comparison reports
✅ Version drift detection with recommendations
✅ Integration with deployment workflows
✅ Export to CSV/JSON for external tools
✅ Canary-first update workflow support
Usage Examples:
```bash
# Collect versions
./scripts/collect-client-versions.sh dev
# Compare all clients
./scripts/check-client-versions.sh
# Detect drift
./scripts/detect-version-drift.sh
# Export for monitoring
./scripts/check-client-versions.sh --format=json
```
Closes #15
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-01-17 20:53:15 +01:00 |
|