|
| 1 | +/** |
| 2 | + * Copyright 2018-2024 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 "service_account" { |
| 18 | + description = "The default service account used for running nodes." |
| 19 | + value = module.gke.service_account |
| 20 | +} |
| 21 | + |
| 22 | +# Standard test outputs |
| 23 | +output "project_id" { |
| 24 | + value = var.project_id |
| 25 | +} |
| 26 | + |
| 27 | +output "region" { |
| 28 | + value = module.gke.region |
| 29 | +} |
| 30 | + |
| 31 | +output "cluster_name" { |
| 32 | + description = "Cluster name" |
| 33 | + value = module.gke.name |
| 34 | +} |
| 35 | + |
| 36 | +output "network" { |
| 37 | + value = google_compute_network.main.name |
| 38 | +} |
| 39 | + |
| 40 | +output "subnetwork" { |
| 41 | + value = google_compute_subnetwork.main.name |
| 42 | +} |
| 43 | + |
| 44 | +output "location" { |
| 45 | + value = module.gke.location |
| 46 | +} |
| 47 | + |
| 48 | +output "ip_range_pods" { |
| 49 | + description = "The secondary IP range used for pods" |
| 50 | + value = google_compute_subnetwork.main.secondary_ip_range[0].range_name |
| 51 | +} |
| 52 | + |
| 53 | +output "ip_range_services" { |
| 54 | + description = "The secondary IP range used for services" |
| 55 | + value = google_compute_subnetwork.main.secondary_ip_range[1].range_name |
| 56 | +} |
| 57 | + |
| 58 | +output "zones" { |
| 59 | + description = "List of zones in which the cluster resides" |
| 60 | + value = module.gke.zones |
| 61 | +} |
0 commit comments