Skip to content

Commit 6173ab4

Browse files
committed
Allow to specify pd-balanced as a disk type
1 parent a71cae8 commit 6173ab4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

gcp/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ variable "github_runners_default_type" {
163163
validation {
164164
condition = alltrue([
165165
for value in values(var.github_runners_default_type) :
166-
contains(["pd-ssd", "hyperdisk-balanced"], value.disk_type)
166+
contains(["pd-ssd", "pd-balanced", "hyperdisk-balanced"], value.disk_type)
167167
])
168-
error_message = "Disk type must be either 'pd-ssd' or 'hyperdisk-balanced'."
168+
error_message = "Disk type must be either 'pd-ssd', 'pd-balanced' or 'hyperdisk-balanced'."
169169
}
170170

171171
validation {
@@ -492,9 +492,9 @@ variable "github_runners_types" {
492492
validation {
493493
condition = alltrue([
494494
for config in var.github_runners_types :
495-
contains(["pd-ssd", "hyperdisk-balanced"], config.disk_type)
495+
contains(["pd-ssd", "pd-balanced", "hyperdisk-balanced"], config.disk_type)
496496
])
497-
error_message = "Disk type must be either 'pd-ssd' or 'hyperdisk-balanced'."
497+
error_message = "Disk type must be either 'pd-ssd', 'pd-balanced' or 'hyperdisk-balanced'."
498498
}
499499

500500
validation {

0 commit comments

Comments
 (0)