-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
72 lines (66 loc) · 3.72 KB
/
main.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
* # helm
*
* This module manages helm releases.
*
*/
/** helm release */
resource "helm_release" "release" {
for_each = var.helm_release
name = local.helm_release[each.key].name == "" ? each.key : local.helm_release[each.key].name
namespace = local.helm_release[each.key].namespace
chart = local.helm_release[each.key].chart
repository = local.helm_release[each.key].repository
repository_key_file = local.helm_release[each.key].repository_key_file
repository_cert_file = local.helm_release[each.key].repository_cert_file
repository_ca_file = local.helm_release[each.key].repository_ca_file
repository_username = local.helm_release[each.key].repository_username
repository_password = local.helm_release[each.key].repository_password
devel = local.helm_release[each.key].devel
version = local.helm_release[each.key].version
verify = local.helm_release[each.key].verify
keyring = local.helm_release[each.key].keyring
timeout = local.helm_release[each.key].timeout
disable_webhooks = local.helm_release[each.key].disable_webhooks
reuse_values = local.helm_release[each.key].reuse_values
reset_values = local.helm_release[each.key].reset_values
force_update = local.helm_release[each.key].force_update
recreate_pods = local.helm_release[each.key].recreate_pods
cleanup_on_fail = local.helm_release[each.key].cleanup_on_fail
max_history = local.helm_release[each.key].max_history
atomic = local.helm_release[each.key].atomic
skip_crds = local.helm_release[each.key].skip_crds
render_subchart_notes = local.helm_release[each.key].render_subchart_notes
disable_openapi_validation = local.helm_release[each.key].disable_openapi_validation
wait = local.helm_release[each.key].wait
wait_for_jobs = local.helm_release[each.key].wait_for_jobs
dependency_update = local.helm_release[each.key].dependency_update
replace = local.helm_release[each.key].replace
description = local.helm_release[each.key].description
lint = local.helm_release[each.key].lint
create_namespace = local.helm_release[each.key].create_namespace
values = local.helm_release[each.key].values
dynamic "set" {
for_each = local.helm_release[each.key].set
content {
name = local.helm_release[each.key].set[set.key].name == "" ? set.key : local.helm_release[each.key].set[set.key].name
value = local.helm_release[each.key].set[set.key].value
type = local.helm_release[each.key].set[set.key].type
}
}
dynamic "set_sensitive" {
for_each = local.helm_release[each.key].set_sensitive
content {
name = local.helm_release[each.key].set_sensitive[set_sensitive.key].name == "" ? set_sensitive.key : local.helm_release[each.key].set_sensitive[set_sensitive.key].name
value = local.helm_release[each.key].set_sensitive[set_sensitive.key].value
type = local.helm_release[each.key].set_sensitive[set_sensitive.key].type
}
}
dynamic "postrender" {
for_each = local.helm_release[each.key].postrender.binary_path != "" ? [1] : []
content {
binary_path = local.helm_release[each.key].postrender.binary_path
args = local.helm_release[each.key].postrender.args
}
}
}