forked from kube-hetzner/terraform-hcloud-kube-hetzner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values-export.tf
48 lines (42 loc) · 1.61 KB
/
values-export.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
resource "local_file" "cilium_values" {
count = var.export_values && var.cni_plugin == "cilium" ? 1 : 0
content = local.cilium_values
filename = "cilium_values.yaml"
file_permission = "600"
}
resource "local_file" "cert_manager_values" {
count = var.export_values && var.enable_cert_manager ? 1 : 0
content = local.cert_manager_values
filename = "cert_manager_values.yaml"
file_permission = "600"
}
resource "local_file" "csi_driver_smb_values" {
count = var.export_values && var.enable_csi_driver_smb ? 1 : 0
content = local.csi_driver_smb_values
filename = "csi_driver_smb_values.yaml"
file_permission = "600"
}
resource "local_file" "longhorn_values" {
count = var.export_values && var.enable_longhorn ? 1 : 0
content = local.longhorn_values
filename = "longhorn_values.yaml"
file_permission = "600"
}
resource "local_file" "traefik_values" {
count = var.export_values && var.ingress_controller == "traefik" ? 1 : 0
content = local.traefik_values
filename = "traefik_values.yaml"
file_permission = "600"
}
resource "local_file" "nginx_values" {
count = var.export_values && var.ingress_controller == "nginx" ? 1 : 0
content = local.nginx_values
filename = "nginx_values.yaml"
file_permission = "600"
}
resource "local_file" "haproxy_values" {
count = var.export_values && var.ingress_controller == "haproxy" ? 1 : 0
content = local.haproxy_values
filename = "haproxy_values.yaml"
file_permission = "600"
}