Skip to content

Commit

Permalink
feat(gke-cluster-standard): Improve default_node_pool condition val…
Browse files Browse the repository at this point in the history
…idation
  • Loading branch information
anthonyhaussman committed Mar 26, 2024
1 parent fff098a commit 56c81ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gke-cluster-standard/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ variable "default_node_pool" {
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))
condition = (var.default_node_pool.remove_pool != (var.default_node_pool.initial_node_count != null))
error_message = "If `remove_pool` is set to false, `initial_node_count` need be set."
}
}
Expand Down

0 comments on commit 56c81ae

Please sign in to comment.