File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -86,3 +86,8 @@ variable "enable_secure_boot" {
86
86
description = " If shielded nodes is enabled at the cluster level, you can optionally set this to enable secure boot on shielded nodes."
87
87
default = false
88
88
}
89
+
90
+ variable "taint" {
91
+ description = " Key value pairs of taints to apply on nodes in the pool"
92
+ type = map
93
+ }
Original file line number Diff line number Diff line change @@ -74,6 +74,20 @@ resource "google_container_node_pool" "node_pool" {
74
74
}
75
75
}
76
76
77
+ dynamic "taint" {
78
+ for_each = [var . taint ]
79
+ content {
80
+ # TF-UPGRADE-TODO: The automatic upgrade tool can't predict
81
+ # which keys might be set in maps assigned here, so it has
82
+ # produced a comprehensive set here. Consider simplifying
83
+ # this after confirming which keys can be set in practice.
84
+
85
+ effect = taint. value . effect
86
+ key = taint. value . key
87
+ value = taint. value . value
88
+ }
89
+ }
90
+
77
91
oauth_scopes = concat (local. base_oauth_scope , var. additional_oauth_scopes )
78
92
}
79
93
You can’t perform that action at this time.
0 commit comments