From 7b21227ef706a5c430a23c651893782a0b3de91a Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Sat, 12 Dec 2020 04:45:45 +0000 Subject: [PATCH] add gvnic support for image (#4306) Co-authored-by: Edward Sun Signed-off-by: Modular Magician --- .changelog/4306.txt | 3 +++ google/resource_compute_image.go | 4 ++-- website/docs/r/compute_image.html.markdown | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changelog/4306.txt diff --git a/.changelog/4306.txt b/.changelog/4306.txt new file mode 100644 index 00000000000..5ef757b92c4 --- /dev/null +++ b/.changelog/4306.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +Added support for Google Virtual Network Interface (gVNIC) for image part +``` diff --git a/google/resource_compute_image.go b/google/resource_compute_image.go index 9d96a1a28ef..93024f59133 100644 --- a/google/resource_compute_image.go +++ b/google/resource_compute_image.go @@ -218,8 +218,8 @@ func computeImageGuestOsFeaturesSchema() *schema.Resource { Type: schema.TypeString, Required: true, ForceNew: true, - ValidateFunc: validation.StringInSlice([]string{"MULTI_IP_SUBNET", "SECURE_BOOT", "SEV_CAPABLE", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS"}, false), - Description: `The type of supported feature. Read [Enabling guest operating system features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features) to see a list of available options. Possible values: ["MULTI_IP_SUBNET", "SECURE_BOOT", "SEV_CAPABLE", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS"]`, + ValidateFunc: validation.StringInSlice([]string{"MULTI_IP_SUBNET", "SECURE_BOOT", "SEV_CAPABLE", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC"}, false), + Description: `The type of supported feature. Read [Enabling guest operating system features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features) to see a list of available options. Possible values: ["MULTI_IP_SUBNET", "SECURE_BOOT", "SEV_CAPABLE", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC"]`, }, }, } diff --git a/website/docs/r/compute_image.html.markdown b/website/docs/r/compute_image.html.markdown index fd02067f196..2840225fc13 100644 --- a/website/docs/r/compute_image.html.markdown +++ b/website/docs/r/compute_image.html.markdown @@ -178,7 +178,7 @@ The `guest_os_features` block supports: * `type` - (Required) The type of supported feature. Read [Enabling guest operating system features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features) to see a list of available options. - Possible values are `MULTI_IP_SUBNET`, `SECURE_BOOT`, `SEV_CAPABLE`, `UEFI_COMPATIBLE`, `VIRTIO_SCSI_MULTIQUEUE`, and `WINDOWS`. + Possible values are `MULTI_IP_SUBNET`, `SECURE_BOOT`, `SEV_CAPABLE`, `UEFI_COMPATIBLE`, `VIRTIO_SCSI_MULTIQUEUE`, `WINDOWS`, and `GVNIC`. The `raw_disk` block supports: