forked from DNXLabs/terraform-aws-eks-lb-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helm.tf
38 lines (32 loc) · 786 Bytes
/
helm.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
resource "helm_release" "lb_controller" {
depends_on = [var.mod_dependency, kubernetes_namespace.lb_controller]
count = var.enabled ? 1 : 0
name = var.helm_chart_name
chart = var.helm_chart_release_name
repository = var.helm_chart_repo
version = var.helm_chart_version
namespace = var.namespace
set {
name = "clusterName"
value = var.cluster_name
}
set {
name = "rbac.create"
value = "true"
}
set {
name = "serviceAccount.create"
value = "true"
}
set {
name = "serviceAccount.name"
value = var.service_account_name
}
set {
name = "serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn"
value = aws_iam_role.lb_controller[0].arn
}
values = [
yamlencode(var.settings)
]
}