Skip to content

Commit

Permalink
Merge pull request #91 from convox/taint-variables
Browse files Browse the repository at this point in the history
Don't apply match all toleration if specifying custom ones
  • Loading branch information
DrFaust92 authored Nov 20, 2022
2 parents 87543de + 48f5650 commit ad4d76c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions controller.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ resource "kubernetes_deployment" "ebs_csi_controller" {
automount_service_account_token = true
priority_class_name = "system-cluster-critical"

toleration {
operator = "Exists"
}

dynamic "toleration" {
for_each = var.csi_controller_tolerations
for_each = length(var.csi_controller_tolerations) > 0 ? var.csi_controller_tolerations : [{ operator = "Exists" }]
content {
key = lookup(toleration.value, "key", null)
operator = lookup(toleration.value, "operator", null)
Expand Down
6 changes: 1 addition & 5 deletions node.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,8 @@ resource "kubernetes_daemonset" "node" {
automount_service_account_token = true
priority_class_name = "system-node-critical"

toleration {
operator = "Exists"
}

dynamic "toleration" {
for_each = var.node_tolerations
for_each = length(var.node_tolerations) > 0 ? var.csi_controller_tolerations : [{ operator = "Exists" }]
content {
key = lookup(toleration.value, "key", null)
operator = lookup(toleration.value, "operator", null)
Expand Down

0 comments on commit ad4d76c

Please sign in to comment.