banger/internal/daemon
Thales Maciel ebb68c3126 Reconcile stale default image on startup
Upgrades from the pre-bundle layout can leave the unmanaged default image pointing at repo-root artifacts that no longer exist, causing vm start preflight to fail forever. Treat the default image as reconcilable state instead of bailing out when a record exists.

Compute the desired default image from current runtime/config defaults, update an existing unmanaged default in place when its paths diverge, keep managed defaults untouched, and preserve the original ID so existing VMs keep referencing it. Added regression tests covering creation, no-op, reconciliation, managed-image skip, and missing-artifact behavior.
2026-03-16 16:45:54 -03:00
..
daemon.go Reconcile stale default image on startup 2026-03-16 16:45:54 -03:00
daemon_test.go Reconcile stale default image on startup 2026-03-16 16:45:54 -03:00
images.go Add structured daemon lifecycle logs 2026-03-16 16:16:28 -03:00
logger.go Add structured daemon lifecycle logs 2026-03-16 16:16:28 -03:00
logger_test.go Add structured daemon lifecycle logs 2026-03-16 16:16:28 -03:00
nat.go Make runtime defaults portable 2026-03-16 15:30:08 -03:00
nat_test.go Manage NAT directly from VM records 2026-03-16 13:50:54 -03:00
preflight.go Make runtime defaults portable 2026-03-16 15:30:08 -03:00
snapshot.go Rollback partial dm snapshot startup 2026-03-16 14:06:17 -03:00
snapshot_test.go Rollback partial dm snapshot startup 2026-03-16 14:06:17 -03:00
vm.go Reject invalid VM CPU and memory values 2026-03-16 16:28:17 -03:00
vm_test.go Reject invalid VM CPU and memory values 2026-03-16 16:28:17 -03:00