@@ -47,12 +47,13 @@ locals {
|
||||
"https://www.googleapis.com/auth/userinfo.email"
|
||||
]
|
||||
)
|
||||
taints = merge(var.taints, !local.image.is_win ? {} : {
|
||||
"node.kubernetes.io/os" = {
|
||||
value = "windows"
|
||||
effect = "NO_EXECUTE"
|
||||
}
|
||||
})
|
||||
taints_windows = (
|
||||
local.image.is_win
|
||||
? [{
|
||||
key = "node.kubernetes.io/os", value = "windows", effect = "NO_EXECUTE"
|
||||
}]
|
||||
: []
|
||||
)
|
||||
}
|
||||
|
||||
resource "google_service_account" "service_account" {
|
||||
@@ -214,7 +215,7 @@ resource "google_container_node_pool" "nodepool" {
|
||||
}
|
||||
}
|
||||
dynamic "taint" {
|
||||
for_each = local.taints
|
||||
for_each = var.taints
|
||||
content {
|
||||
key = taint.key
|
||||
value = taint.value.value
|
||||
|
||||
Reference in New Issue
Block a user