-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
53 lines (43 loc) · 1.61 KB
/
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
48
49
50
51
52
53
# Copyright 2023 StreamNative, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
output "ca_certificate" {
value = try(module.gke[0].ca_certificate, module.gke_private[0].ca_certificate)
}
output "endpoint" {
value = try(module.gke[0].endpoint, module.gke_private[0].endpoint)
}
output "id" {
value = try(module.gke[0].cluster_id, module.gke_private[0].cluster_id)
}
output "name" {
value = local.cluster_name
}
output "master_version" {
value = try(module.gke[0].master_version, module.gke_private[0].master_version)
}
output "service_account" {
value = try(module.gke[0].service_account, module.gke_private[0].service_account)
}
output "cert_manager_sa_email" {
value = try(module.cert_manager_sa[0].gcp_service_account_email, "")
}
output "external_dns_manager_sa_email" {
value = try(module.external_dns_sa[0].gcp_service_account_email, "")
}
output "external_secrets_sa_email" {
value = try(module.external_secrets_sa[0].gcp_service_account_email, "")
}
output "node_pool_azs" {
value = var.node_pool_locations != "" ? split(",", var.node_pool_locations) : try(module.gke[0].zones, module.gke_private[0].zones)
}