forked from aws-ia/terraform-aws-eks-data-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karpenter-resources.tf
61 lines (57 loc) · 2.82 KB
/
karpenter-resources.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
locals {
namespace = "karpenter-resources"
version = "0.0.1"
}
resource "helm_release" "karpenter_resources" {
for_each = var.enable_karpenter_resources ? var.karpenter_resources_helm_config : {}
name = each.key
repository = try(each.value["repository"], null)
chart = try(each.value["chart"], "${path.module}/helm-charts/karpenter-resources")
version = try(each.value["version"], local.version)
timeout = try(each.value["timeout"], 300)
values = try(each.value["values"], null)
create_namespace = try(each.value["create_namespace"], true)
namespace = try(each.value["namespace"], local.namespace)
lint = try(each.value["lint"], false)
description = try(each.value["description"], "")
repository_key_file = try(each.value["repository_key_file"], "")
repository_cert_file = try(each.value["repository_cert_file"], "")
repository_username = try(each.value["repository_username"], "")
repository_password = try(each.value["repository_password"], "")
verify = try(each.value["verify"], false)
keyring = try(each.value["keyring"], "")
disable_webhooks = try(each.value["disable_webhooks"], false)
reuse_values = try(each.value["reuse_values"], false)
reset_values = try(each.value["reset_values"], false)
force_update = try(each.value["force_update"], false)
recreate_pods = try(each.value["recreate_pods"], false)
cleanup_on_fail = try(each.value["cleanup_on_fail"], false)
max_history = try(each.value["max_history"], 0)
atomic = try(each.value["atomic"], false)
skip_crds = try(each.value["skip_crds"], false)
render_subchart_notes = try(each.value["render_subchart_notes"], true)
disable_openapi_validation = try(each.value["disable_openapi_validation"], false)
wait = try(each.value["wait"], true)
wait_for_jobs = try(each.value["wait_for_jobs"], false)
dependency_update = try(each.value["dependency_update"], false)
replace = try(each.value["replace"], false)
postrender {
binary_path = try(each.value["postrender"], "")
}
dynamic "set" {
for_each = try(each.value["set"], [])
content {
name = each_item.value.name
value = each_item.value.value
type = try(each_item.value.type, null)
}
}
dynamic "set_sensitive" {
for_each = try(each.value["set_sensitive"], [])
content {
name = each_item.value.name
value = each_item.value.value
type = try(each_item.value.type, null)
}
}
}