Skip to content

Commit

Permalink
variables.tf: add the 'gcp_arm64_worker_image_name' variable
Browse files Browse the repository at this point in the history
This change is related to
antmicro/runner@bb5f729
  • Loading branch information
AdamOlech committed Jan 13, 2023
1 parent 0f15faf commit 487d326
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <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 |
| <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 |
| <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 |
| <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 |
Expand Down
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,9 @@ resource "google_compute_instance" "gha-coordinator" {
}

metadata = {
SCALE = var.gcp_coordinator_scale > 0 ? var.gcp_coordinator_scale : null
WORKER_IMAGE = var.gcp_worker_image_name != "" ? var.gcp_worker_image_name : null
SCALE = var.gcp_coordinator_scale > 0 ? var.gcp_coordinator_scale : null
WORKER_IMAGE = var.gcp_worker_image_name != "" ? var.gcp_worker_image_name : null
WORKER_IMAGE_ARM64 = var.gcp_arm64_worker_image_name != "" ? var.gcp_arm64_worker_image_name : null
}

deletion_protection = true
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ variable "gcp_worker_image_name" {
default = ""
}

variable "gcp_arm64_worker_image_name" {
type = string
description = "Name of the image used for worker instances (ARM64)"
default = ""
}

variable "gcp_vpc_ipv6" {
type = bool
description = "Enable external IPv6 access for worker machines"
Expand Down

0 comments on commit 487d326

Please sign in to comment.