Skip to content

Commit

Permalink
feat(gke-cluster-standard): Fix validation condition for `cluster_aut…
Browse files Browse the repository at this point in the history
…oscaling`
  • Loading branch information
anthonyhaussman committed Nov 10, 2023
1 parent e3e2e55 commit a80fe68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/gke-cluster-standard/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ variable "cluster_autoscaling" {
max = number
})))
})
default = {}
default = null
validation {
condition = contains(["BALANCED", "OPTIMIZE_UTILIZATION"], var.cluster_autoscaling.autoscaling_profile)
condition = var.cluster_autoscaling.autoscaling_profile == "" || contains(["BALANCED", "OPTIMIZE_UTILIZATION"], var.cluster_autoscaling.autoscaling_profile)
error_message = "Invalid autoscaling_profile."
}
validation {
condition = contains(["pd-standard", "pd-ssd", "pd-balanced"], var.cluster_autoscaling.auto_provisioning_defaults.disk_type)
condition = var.cluster_autoscaling.auto_provisioning_defaults.disk_type == "" || contains(["pd-standard", "pd-ssd", "pd-balanced"], var.cluster_autoscaling.auto_provisioning_defaults.disk_type)
error_message = "Invalid disk_type."
}
}
Expand Down

0 comments on commit a80fe68

Please sign in to comment.