Merge pull request #108 from kinvolk/marga-kinvolk/gce-pro

Add GCE Pro OEM type
This commit is contained in:
Marga Manterola 2021-01-04 11:59:44 +01:00 committed by GitHub
commit df660df80e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View File

@ -18,6 +18,7 @@ VALID_IMG_TYPES=(
digitalocean
exoscale
gce
gce_pro
hyperv
interoute
iso
@ -253,6 +254,12 @@ IMG_gce_CONF_FORMAT=gce
IMG_gce_OEM_PACKAGE=oem-gce
IMG_gce_OEM_ACI=gce
## gce pro, image tarball
IMG_gce_pro_DISK_LAYOUT=vm
IMG_gce_pro_CONF_FORMAT=gce
IMG_gce_pro_OEM_PACKAGE=oem-gce
IMG_gce_pro_OEM_ACI=gce
## rackspace
IMG_rackspace_OEM_PACKAGE=oem-rackspace
IMG_rackspace_vhd_DISK_FORMAT=vhd

View File

@ -4,6 +4,7 @@ ami_vmdk_pro
azure
azure_pro
gce
gce_pro
iso
pxe
qemu

View File

@ -43,8 +43,10 @@ img=src/flatcar_production_image.bin
[[ "${img}.bz2" -nt "${img}" ]] &&
enter lbunzip2 -k -f "/mnt/host/source/${img}.bz2"
# If the format variable ends with _pro it's a Flatcar Pro image and it should
# be uploaded to the private bucket.
PRIVATE_UPLOAD_OPT=""
if [[ "${FORMAT}" == 'azure_pro' ]] || [[ "${FORMAT}" == 'ami_vmdk_pro' ]]
if [[ -z "${FORMAT##*_pro}" ]]
then
PRIVATE_UPLOAD_OPT="--private"
UPLOAD_ROOT=${UPLOAD_PRIVATE_ROOT}