ci: make instance type configurable for provider sample (#2893)

* Make default instance type configurable for provider sample
* Set TDX instance type when running TDX provider e2e test
* Fix missing attestation variant when setting up stub config in provider e2e test

---------

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2024-02-05 15:46:57 +01:00 committed by GitHub
parent f21252c57d
commit 64c32c2236
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 7 deletions

View file

@ -23,6 +23,7 @@ locals {
project_id = "constellation-331613"
control_plane_count = 3
worker_count = 2
instance_type = "n2d-standard-4"
master_secret = random_bytes.master_secret.hex
master_secret_salt = random_bytes.master_secret_salt.hex
@ -57,7 +58,7 @@ module "gcp_infrastructure" {
node_groups = {
control_plane_default = {
role = "control-plane"
instance_type = "n2d-standard-4"
instance_type = local.instance_type
disk_size = 30
disk_type = "pd-ssd"
initial_count = local.control_plane_count
@ -65,7 +66,7 @@ module "gcp_infrastructure" {
},
worker_default = {
role = "worker"
instance_type = "n2d-standard-4"
instance_type = local.instance_type
disk_size = 30
disk_type = "pd-ssd"
initial_count = local.worker_count