Skip to content

Commit

Permalink
Add variable to configure taints on node pool module
Browse files Browse the repository at this point in the history
  • Loading branch information
pst committed Aug 17, 2021
1 parent b6c35ce commit ac5838c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google/_modules/gke/node_pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ resource "google_container_node_pool" "current" {
workload_metadata_config {
node_metadata = var.node_workload_metadata_config
}

taint = var.taint
}

management {
auto_repair = var.auto_repair
auto_upgrade = var.auto_upgrade
}
}

6 changes: 6 additions & 0 deletions google/_modules/gke/node_pool/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,9 @@ variable "node_workload_metadata_config" {
description = "How to expose the node metadata to the workload running on the node."
type = string
}

variable "taint" {
description = "Taints to configure for the node pool."
type = list(any)
default = []
}

0 comments on commit ac5838c

Please sign in to comment.