cloudapi: add azure-cvm image type

Introduce the azure-cvm (confidential VM) in the cloud API.
This commit is contained in:
Achilleas Koutsou 2025-06-24 12:46:27 +02:00 committed by Sanne Raymaekers
parent f1afe0ce26
commit f6c1709d8d
5 changed files with 226 additions and 212 deletions

View file

@ -284,6 +284,8 @@ func getDefaultTarget(imageType ImageTypes) (UploadTypes, error) {
case ImageTypesAzure:
fallthrough
case ImageTypesAzureCvm:
fallthrough
case ImageTypesAzureEap7Rhui:
fallthrough
case ImageTypesAzureRhui:
@ -333,6 +335,7 @@ func targetSupportMap() map[UploadTypes]map[ImageTypes]bool {
},
UploadTypesAzure: {
ImageTypesAzure: true,
ImageTypesAzureCvm: true,
ImageTypesAzureRhui: true,
ImageTypesAzureEap7Rhui: true,
ImageTypesAzureSapRhui: true,
@ -350,6 +353,7 @@ func targetSupportMap() map[UploadTypes]map[ImageTypes]bool {
ImageTypesAwsHaRhui: true,
ImageTypesAwsSapRhui: true,
ImageTypesAzure: true,
ImageTypesAzureCvm: true,
ImageTypesAzureRhui: true,
ImageTypesAzureEap7Rhui: true,
ImageTypesAzureSapRhui: true,