Skip to content

Commit d876cd5

Browse files
Edgar Garciaedg4rgarci4
authored andcommitted
compute: add SNP_SVSM_CAPABLE and SEV_LIVE_MIGRATABLE_V2 to guest_os_features enum
Add `SNP_SVSM_CAPABLE` to the `guest_os_features` enum for `google_compute_image` and `google_compute_region_disk`. The GCP Compute API already returns `SNP_SVSM_CAPABLE` on newer images (e.g. Ubuntu 24.04 based), but the provider's ValidateEnum rejects it, causing plan failures on import and force-replacement of existing images. Also adds `SEV_LIVE_MIGRATABLE_V2` to RegionDisk.yaml which was already present in Image.yaml but missing from RegionDisk. Fixes validation errors like: expected guest_os_features.0.type to be one of [...], got SNP_SVSM_CAPABLE
1 parent 323976f commit d876cd5

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

mmv1/products/compute/Image.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ properties:
143143
- 'SUSPEND_RESUME_COMPATIBLE'
144144
- 'TDX_CAPABLE'
145145
- 'SEV_LIVE_MIGRATABLE_V2'
146+
- 'SNP_SVSM_CAPABLE'
146147
- name: 'imageEncryptionKey'
147148
type: NestedObject
148149
description: |

mmv1/products/compute/RegionDisk.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ properties:
368368
- 'SEV_SNP_CAPABLE'
369369
- 'SUSPEND_RESUME_COMPATIBLE'
370370
- 'TDX_CAPABLE'
371+
- 'SEV_LIVE_MIGRATABLE_V2'
372+
- 'SNP_SVSM_CAPABLE'
371373
- name: 'licenses'
372374
type: Array
373375
description: Any applicable license URI.

0 commit comments

Comments
 (0)