fix: remove cross-variable validation from worker lists
Some checks failed
Terraform Plan / Terraform Plan (push) Failing after 17s
Some checks failed
Terraform Plan / Terraform Plan (push) Failing after 17s
Terraform variable validation blocks can only reference the variable itself, so list length checks against worker_count were removed to restore init/plan.
This commit is contained in:
@@ -67,22 +67,12 @@ variable "worker_cores" {
|
|||||||
type = list(number)
|
type = list(number)
|
||||||
default = [4, 4, 3]
|
default = [4, 4, 3]
|
||||||
description = "vCPU cores for each worker VM"
|
description = "vCPU cores for each worker VM"
|
||||||
|
|
||||||
validation {
|
|
||||||
condition = length(var.worker_cores) == var.worker_count
|
|
||||||
error_message = "worker_cores list length must equal worker_count."
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "worker_memory_mb" {
|
variable "worker_memory_mb" {
|
||||||
type = list(number)
|
type = list(number)
|
||||||
default = [12288, 12288, 12288]
|
default = [12288, 12288, 12288]
|
||||||
description = "Memory in MB for each worker VM"
|
description = "Memory in MB for each worker VM"
|
||||||
|
|
||||||
validation {
|
|
||||||
condition = length(var.worker_memory_mb) == var.worker_count
|
|
||||||
error_message = "worker_memory_mb list length must equal worker_count."
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "control_plane_disk_size" {
|
variable "control_plane_disk_size" {
|
||||||
|
|||||||
Reference in New Issue
Block a user