-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path23_outputs.tf
47 lines (37 loc) · 1.64 KB
/
23_outputs.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
output "configEnvName" {
value = local.configEnvEnabled ? kubernetes_config_map_v1.configEnv.0.metadata.0.name : null
}
output "configVolumeNames" {
value = {for k, v in kubernetes_config_map_v1.configVolume : k => v.metadata.0.name }
}
output "secretEnvName" {
value = local.secretEnvEnabled ? kubernetes_secret_v1.secretEnv.0.metadata.0.name : null
}
output "secretVolumeNames" {
value = {for k, v in kubernetes_secret_v1.secretVolume : k => v.metadata.0.name }
}
#can't use `kubernetes_service_v1.clusterIp.0.metadata.0.name` because it will be incorrectly detected as loop if output is used in containers
output "internalFqdn" {
value = "${local.serviceName}.${var.consistency.hard.namespace}.svc.${var.consistency.hard.clusterName}"
}
#can't use `kubernetes_service_v1.clusterIp.0.metadata.0.name` because it will be detected as loop if output is used in containers
output "serviceName" {
value = local.serviceName
}
#can't use `kubernetes_service_v1.headless.0.metadata.0.name` because it will be detected as loop if output is used in containers
output "headlessServiceName" {
value = local.headlessServiceName
}
#can't use `kubernetes_service_v1.headless.0.metadata.0.name` because it will be detected as loop if output is used in containers
output "internalHeadlessFqdn" {
value = "${local.headlessServiceName}.${var.consistency.hard.namespace}.svc.${var.consistency.hard.clusterName}"
}
output "infrastructureSize" {
value = local.infrastructureSize
}
output "loadBalancerServiceNames" {
value = [for k in range(0, length(var.service.loadBalancer)) : "${local.serviceName}-${k}" ]
}
output "ingressEnabled" {
value = local.ingressEnabled
}