Skip to content

Commit

Permalink
feat(gke-cluster-standard): Improve default_node_pool variable setup
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyhaussman committed Mar 26, 2024
1 parent 0d8fa8b commit 3186f2d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/gke-cluster-standard/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,10 @@ variable "default_node_pool" {
description = "Enable default node-pool."
type = object({
remove_pool = optional(bool, true)
initial_node_count = optional(number, null)
initial_node_count = optional(number)
})
default = {
remove_pool = true
initial_node_count = null
}
default = {}
nullable = false

validation {
condition = ((var.default_node_pool.remove_pool == true && var.default_node_pool.initial_node_count == null) || (var.default_node_pool.remove_pool == false && var.default_node_pool.initial_node_count != null))
Expand Down

0 comments on commit 3186f2d

Please sign in to comment.