cli: add STACKIT to constellation config instance-types

This commit is contained in:
Malte Poll 2024-03-01 16:05:08 +01:00
parent d5b3d4fd6f
commit 1c8a7e4c22
3 changed files with 20 additions and 0 deletions

View File

@ -38,6 +38,8 @@ Azure Trusted Launch instance types:
%v
GCP instance types:
%v
STACKIT instance types:
%v
`,
formatInstanceTypes(instancetypes.AWSSNPSupportedInstanceFamilies),
formatInstanceTypes(instancetypes.AWSSupportedInstanceFamilies),
@ -45,6 +47,7 @@ GCP instance types:
formatInstanceTypes(instancetypes.AzureSNPInstanceTypes),
formatInstanceTypes(instancetypes.AzureTrustedLaunchInstanceTypes),
formatInstanceTypes(instancetypes.GCPInstanceTypes),
formatInstanceTypes(instancetypes.STACKITInstanceTypes),
)
}

View File

@ -6,6 +6,7 @@ go_library(
"aws.go",
"azure.go",
"gcp.go",
"stackit.go",
],
importpath = "github.com/edgelesssys/constellation/v2/internal/config/instancetypes",
visibility = ["//:__subpackages__"],

View File

@ -0,0 +1,16 @@
/*
Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: AGPL-3.0-only
*/
package instancetypes
// STACKITInstanceTypes are valid STACKIT instance types.
var STACKITInstanceTypes = []string{
"m1a.2cd",
"m1a.4cd",
"m1a.8cd",
"m1a.16cd",
"m1a.30cd",
}