Skip to content

Commit

Permalink
Merge pull request #60 from sjmiller609/master
Browse files Browse the repository at this point in the history
Support --volume-attach-limit flag
  • Loading branch information
DrFaust92 authored Dec 6, 2021
2 parents 6f10281 + a32a89a commit b272b18
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 4 additions & 3 deletions node.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@ resource "kubernetes_daemonset" "node" {
container {
name = "ebs-plugin"
image = "${var.ebs_csi_controller_image == "" ? "amazon/aws-ebs-csi-driver" : var.ebs_csi_controller_image}:${local.ebs_csi_driver_version}"
args = [
args = flatten([
"node",
"--endpoint=$(CSI_ENDPOINT)",
"--logtostderr",
"--v=${tostring(var.log_level)}",
]
var.volume_attach_limit == -1 ? [] : ["--volume-attach-limit=${var.volume_attach_limit}"]
])

security_context {
privileged = true
Expand Down Expand Up @@ -218,4 +219,4 @@ resource "kubernetes_daemonset" "node" {
}
}
}
}
}
8 changes: 7 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,10 @@ variable "log_level" {
description = "The log level for the CSI Driver controller"
default = 5
type = number
}
}

variable "volume_attach_limit" {
description = "Configure maximum volume attachments per node. -1 means use default configuration"
default = -1
type = number
}

0 comments on commit b272b18

Please sign in to comment.