Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit bd7eebe

Browse files
Add tolerations to chart (#8)
* adding tolerations to chart
1 parent eefa212 commit bd7eebe

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

csi-efs.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,20 @@ resource "helm_release" "aws-efs-csi-driver" {
6868
name = "storageClasses[0].volumeBindingMode"
6969
value = "Immediate"
7070
}
71+
set {
72+
name = "controller.tolerations[0].key"
73+
value = var.toleration_key
74+
}
75+
set {
76+
name = "controller.tolerations[0].value"
77+
value = var.toleration_value
78+
}
79+
set {
80+
name = "controller.tolerations[0].operator"
81+
value = var.toleration_operator
82+
}
83+
set {
84+
name = "controller.tolerations[0].effect"
85+
value = var.toleration_effect
86+
}
7187
}

variables.tf

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,29 @@ variable "permissions_boundary" {
1414
#arn:aws:iam::373346310182:policy/cms-cloud-admin/developer-boundary-policy
1515
}
1616

17+
variable "toleration_key" {
18+
type = string
19+
default = ""
20+
description = "toleration key"
21+
}
22+
23+
variable "toleration_value" {
24+
type = string
25+
default = ""
26+
description = "toleration value"
27+
}
28+
29+
variable "toleration_operator" {
30+
type = string
31+
default = ""
32+
description = "toleration operator"
33+
}
34+
35+
variable "toleration_effect" {
36+
type = string
37+
default = ""
38+
description = "toleration effect"
39+
}
1740

1841
### Helm variables
1942
variable "helm_namespace" {
@@ -46,4 +69,4 @@ variable "vpc_id" {
4669
variable "private_subnet_ids" {
4770
type = list(any)
4871
default = []
49-
}
72+
}

0 commit comments

Comments
 (0)