|
| 1 | +/** |
| 2 | + * Copyright 2018 Google LLC |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +output "kubernetes_endpoint" { |
| 18 | + sensitive = true |
| 19 | + value = module.gke.endpoint |
| 20 | +} |
| 21 | + |
| 22 | +output "client_token" { |
| 23 | + sensitive = true |
| 24 | + value = base64encode(data.google_client_config.default.access_token) |
| 25 | +} |
| 26 | + |
| 27 | +output "ca_certificate" { |
| 28 | + value = module.gke.ca_certificate |
| 29 | +} |
| 30 | + |
| 31 | +output "service_account" { |
| 32 | + description = "The default service account used for running nodes." |
| 33 | + value = module.gke.service_account |
| 34 | +} |
| 35 | + |
| 36 | +output "region" { |
| 37 | + description = "Cluster region" |
| 38 | + value = module.gke.region |
| 39 | +} |
| 40 | + |
| 41 | +output "location" { |
| 42 | + description = "Cluster location (zones)" |
| 43 | + value = module.gke.location |
| 44 | +} |
| 45 | + |
| 46 | +output "project_id" { |
| 47 | + description = "Project id where GKE cluster is created." |
| 48 | + value = var.project_id |
| 49 | +} |
| 50 | + |
| 51 | +output "cluster_name" { |
| 52 | + description = "Cluster name" |
| 53 | + value = module.gke.name |
| 54 | +} |
| 55 | + |
| 56 | +output "k8s_service_account_email" { |
| 57 | + description = "K8S GCP service account." |
| 58 | + value = module.workload_identity.gcp_service_account_email |
| 59 | +} |
| 60 | + |
| 61 | +output "k8s_service_account_name" { |
| 62 | + description = "K8S GCP service name" |
| 63 | + value = module.workload_identity.gcp_service_account_name |
| 64 | +} |
0 commit comments