forked from hcloud-k8s/terraform-hcloud-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtalos_ccm.tf
More file actions
30 lines (26 loc) · 683 Bytes
/
Copy pathtalos_ccm.tf
File metadata and controls
30 lines (26 loc) · 683 Bytes
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
data "helm_template" "talos_ccm" {
count = var.talos_ccm_enabled ? 1 : 0
name = "talos-cloud-controller-manager"
namespace = "kube-system"
repository = var.talos_ccm_helm_repository
chart = var.talos_ccm_helm_chart
version = var.talos_ccm_helm_version
kube_version = var.kubernetes_version
values = [
yamlencode({
enabledControllers = [
"node-csr-approval"
]
daemonSet = {
enabled = true
}
}),
yamlencode(var.talos_ccm_helm_values)
]
}
locals {
talos_ccm_manifest = var.talos_ccm_enabled ? {
name = "talos-ccm"
contents = data.helm_template.talos_ccm[0].manifest
} : null
}