Highlights
- Added
terraform importsupport forlibvirt_domainusing an existing domain UUID. - Added configurable shutdown timeout handling for domain updates that need to stop a running guest before redefine.
- Improved readback preservation for optional nested objects to reduce unintended diffs.
What's Changed
Domain lifecycle and import
- Add
terraform importsupport forlibvirt_domainby UUID, allowing Terraform state to be populated from an existing libvirt domain definition. - Add configurable update shutdown behavior so domain updates can request guest shutdown and wait with a configurable timeout before forcing a stop.
- Add lifecycle tests covering the new shutdown timeout behavior during updates.
Readback and state preservation
- Preserve optional nested objects on readback so unset nested state is not synthesized from libvirt defaults when the user did not configure it.
- Move readback preservation behavior into code generation policy, making the preservation rules more consistent across generated conversions.
- Add tests covering nested object preservation, CPU host-model preservation, and SPICE listen preservation.
Maintenance
- Update
google.golang.org/grpcfrom1.75.1to1.79.3. - Refactor codegen overrides to use named field policies.
Contributors
Full Changelog
Full Changelog: v0.9.5...v0.9.6