-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathhelm.tf
53 lines (44 loc) · 1.14 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
resource "helm_release" "github_runner" {
depends_on = [var.mod_dependency, kubernetes_namespace.github_runner]
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 = "serviceAccount.create"
value = "true"
}
set {
name = "serviceAccount.name"
value = var.service_account_name
}
set {
name = "serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn"
value = var.service_account_iam_role_arn != "" ? var.service_account_iam_role_arn : aws_iam_role.github_runner[0].arn
}
set {
name = "authSecret.create"
value = true
}
set {
name = "authSecret.github_app_id"
value = var.github_app_app_id
}
set {
name = "authSecret.github_app_installation_id"
value = var.github_app_installation_id
}
set {
name = "authSecret.github_app_private_key"
value = var.github_app_private_key
}
set {
name = "authSecret.github_token"
value = var.github_token
}
values = [
yamlencode(var.settings)
]
}