Revert "fix windows taints"

This reverts commit 661b543e08.
This commit is contained in:
Ludo
2023-10-12 13:39:42 +02:00
parent 661b543e08
commit 55fc3e226d

View File

@@ -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