Skip to content

Commit 487d326

Browse files
committed
variables.tf: add the 'gcp_arm64_worker_image_name' variable
This change is related to antmicro/runner@bb5f729
1 parent 0f15faf commit 487d326

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ No modules.
8888

8989
| Name | Description | Type | Default | Required |
9090
|------|-------------|------|---------|:--------:|
91+
| <a name="input_gcp_arm64_worker_image_name"></a> [gcp\_arm64\_worker\_image\_name](#input\_gcp\_arm64\_worker\_image\_name) | Name of the image used for worker instances (ARM64) | `string` | `""` | no |
9192
| <a name="input_gcp_auxiliary_zones"></a> [gcp\_auxiliary\_zones](#input\_gcp\_auxiliary\_zones) | A list of zones where workers can be spawned in case of home zone resource exhaustion (beta) | `list(any)` | `[]` | no |
9293
| <a name="input_gcp_coordinator_disk_image"></a> [gcp\_coordinator\_disk\_image](#input\_gcp\_coordinator\_disk\_image) | Name of the image to use for coordinator boot disk | `string` | `"projects/debian-cloud/global/images/debian-10-buster-v20210512"` | no |
9394
| <a name="input_gcp_coordinator_disk_name_prefix"></a> [gcp\_coordinator\_disk\_name\_prefix](#input\_gcp\_coordinator\_disk\_name\_prefix) | Defaults to instance name if not specified. | `string` | `null` | no |

main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,9 @@ resource "google_compute_instance" "gha-coordinator" {
286286
}
287287

288288
metadata = {
289-
SCALE = var.gcp_coordinator_scale > 0 ? var.gcp_coordinator_scale : null
290-
WORKER_IMAGE = var.gcp_worker_image_name != "" ? var.gcp_worker_image_name : null
289+
SCALE = var.gcp_coordinator_scale > 0 ? var.gcp_coordinator_scale : null
290+
WORKER_IMAGE = var.gcp_worker_image_name != "" ? var.gcp_worker_image_name : null
291+
WORKER_IMAGE_ARM64 = var.gcp_arm64_worker_image_name != "" ? var.gcp_arm64_worker_image_name : null
291292
}
292293

293294
deletion_protection = true

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ variable "gcp_worker_image_name" {
119119
default = ""
120120
}
121121

122+
variable "gcp_arm64_worker_image_name" {
123+
type = string
124+
description = "Name of the image used for worker instances (ARM64)"
125+
default = ""
126+
}
127+
122128
variable "gcp_vpc_ipv6" {
123129
type = bool
124130
description = "Enable external IPv6 access for worker machines"

0 commit comments

Comments
 (0)