Skip to content

Commit ff6b5cc

Browse files
authored
feat: Add peering_name output for private clusters and increase minimum provider version to 3.14 (#484)
1 parent 07de70b commit ff6b5cc

File tree

44 files changed

+89
-28
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+89
-28
lines changed

autogen/main/main.tf.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ locals {
106106
cluster_output_zones = local.cluster_output_regional_zones
107107

108108
{% if private_cluster %}
109-
cluster_endpoint = (var.enable_private_nodes && length(google_container_cluster.primary.private_cluster_config) > 0) ? (var.deploy_using_private_endpoint ? google_container_cluster.primary.private_cluster_config.0.private_endpoint : google_container_cluster.primary.private_cluster_config.0.public_endpoint) : google_container_cluster.primary.endpoint
109+
cluster_endpoint = (var.enable_private_nodes && length(google_container_cluster.primary.private_cluster_config) > 0) ? (var.deploy_using_private_endpoint ? google_container_cluster.primary.private_cluster_config.0.private_endpoint : google_container_cluster.primary.private_cluster_config.0.public_endpoint) : google_container_cluster.primary.endpoint
110+
cluster_peering_name = (var.enable_private_nodes && length(google_container_cluster.primary.private_cluster_config) > 0) ? google_container_cluster.primary.private_cluster_config.0.peering_name : null
110111
{% else %}
111112
cluster_endpoint = google_container_cluster.primary.endpoint
112113
{% endif %}

autogen/main/outputs.tf.tmpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ output "master_ipv4_cidr_block" {
125125
value = var.master_ipv4_cidr_block
126126
}
127127

128+
output "peering_name" {
129+
description = "The name of the peering between this cluster and the Google owned VPC."
130+
value = local.cluster_peering_name
131+
}
128132
{% endif %}
129133
{% if beta_cluster %}
130134

autogen/safer-cluster/outputs.tf.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,8 @@ output "master_ipv4_cidr_block" {
121121
description = "The IP range in CIDR notation used for the hosted master network"
122122
value = var.master_ipv4_cidr_block
123123
}
124+
125+
output "peering_name" {
126+
description = "The name of the peering between this cluster and the Google owned VPC."
127+
value = module.gke.peering_name
128+
}

examples/deploy_service/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ locals {
1919
}
2020

2121
provider "google" {
22-
version = "~> 3.3.0"
22+
version = "~> 3.14.0"
2323
region = var.region
2424
}
2525

examples/disable_client_cert/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ locals {
1919
}
2020

2121
provider "google" {
22-
version = "~> 3.3.0"
22+
version = "~> 3.14.0"
2323
region = var.region
2424
}
2525

examples/private_zonal_with_networking/outputs.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,7 @@ output "subnet_secondary_ranges" {
5656
value = module.gcp-network.subnets_secondary_ranges
5757
}
5858

59-
59+
output "peering_name" {
60+
description = "The name of the peering between this cluster and the Google owned VPC."
61+
value = module.gke.peering_name
62+
}

examples/regional_private_node_pool_oauth_scopes/provider.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
*/
1616

1717
provider "google" {
18-
version = "3.3.0"
18+
version = "3.14.0"
1919
}
2020

2121
provider "google-beta" {
22-
version = "3.3.0"
22+
version = "3.14.0"
2323
}

examples/shared_vpc/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ locals {
1919
}
2020

2121
provider "google" {
22-
version = "~> 3.3.0"
22+
version = "~> 3.14.0"
2323
region = var.region
2424
}
2525

examples/simple_regional/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ locals {
1919
}
2020

2121
provider "google" {
22-
version = "~> 3.3.0"
22+
version = "~> 3.14.0"
2323
region = var.region
2424
}
2525

examples/simple_regional_private/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ locals {
1919
}
2020

2121
provider "google" {
22-
version = "~> 3.3.0"
22+
version = "~> 3.14.0"
2323
region = var.region
2424
}
2525

0 commit comments

Comments
 (0)