Skip to content

Commit

Permalink
Merge pull request #327 from kbst/fix-gke-taints
Browse files Browse the repository at this point in the history
GKE: Fix taints dynamic block syntax
  • Loading branch information
pst authored Jan 8, 2024
2 parents 910ed10 + 46c49a2 commit 19e44d5
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 19e44d5

Please sign in to comment.