Skip to content

Commit

Permalink
GKE: Fix taints dynamic block syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pst committed Jan 8, 2024
1 parent 910ed10 commit 46c49a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions google/_modules/gke/node_pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ resource "google_container_node_pool" "current" {
for_each = var.taints == null ? [] : var.taints

content {
key = taint.key
value = taint.value
effect = taint.effect
key = taint.value["key"]
value = taint.value["value"]
effect = taint.value["effect"]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/gke_zero_node_pools.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module "gke_zero_node_pool" {
location = module.gke_zero.current_config["region"]
node_locations = ["europe-west1-c", "europe-west1-d"]

taint = [
taints = [
{
effect = "NO_SCHEDULE"
key = "nvidia.com/gpu"
Expand Down

0 comments on commit 46c49a2

Please sign in to comment.