hashicorp / packer-plugin-googlecompute

Packer plugin for Google Compute Builder
https://www.packer.io/docs/builders/googlecompute
Mozilla Public License 2.0
25 stars 54 forks source link

Image architecture config #214

Closed BrennenMM7 closed 5 months ago

BrennenMM7 commented 6 months ago

This PR is to add image_architecture as a config for the packer plugin. Currently this plugin only supports provisioning Image Types of X86_64 in GCP disabling the ability to create ARM based images.

image_architecture will allow consumers of this plugin to modify the disk type being provisioned by GCE to enable ARM based packer images in GCP.

Test and validation are included with this PR to ensure that image_architecture is set to X86_64 or ARM64, by default it will select X86_64 as its the most common. This field is also optional so leaving it blank or an empty value will serve backwards compatibility for current configs.

hashicorp-cla commented 6 months ago

CLA assistant check
All committers have signed the CLA.

lbajolet-hashicorp commented 6 months ago

Also, since you change the documentation for the Config structure, its docs partials need to be regenerated. You can use the generate target from the Makefile to do so if you have make installed on your machine.

BrennenMM7 commented 5 months ago

@lbajolet-hashicorp Any chance of a green thumb? 🟢