Skip to content

Commit 0746e94

Browse files
authored
Merge branch 'main' into wyardley/2248
2 parents 6a2c828 + 3ecf473 commit 0746e94

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

autogen/main/outputs.tf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ output "mesh_certificates_config" {
206206

207207
output "master_ipv4_cidr_block" {
208208
description = "The IP range in CIDR notation used for the hosted master network"
209-
value = google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block
209+
value = var.enable_private_nodes ? google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block : null
210210
}
211211

212212
output "peering_name" {

modules/beta-autopilot-private-cluster/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ output "tpu_ipv4_cidr_block" {
164164

165165
output "master_ipv4_cidr_block" {
166166
description = "The IP range in CIDR notation used for the hosted master network"
167-
value = google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block
167+
value = var.enable_private_nodes ? google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block : null
168168
}
169169

170170
output "peering_name" {

modules/beta-private-cluster-update-variant/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ output "mesh_certificates_config" {
191191

192192
output "master_ipv4_cidr_block" {
193193
description = "The IP range in CIDR notation used for the hosted master network"
194-
value = google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block
194+
value = var.enable_private_nodes ? google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block : null
195195
}
196196

197197
output "peering_name" {

modules/beta-private-cluster/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ output "mesh_certificates_config" {
191191

192192
output "master_ipv4_cidr_block" {
193193
description = "The IP range in CIDR notation used for the hosted master network"
194-
value = google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block
194+
value = var.enable_private_nodes ? google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block : null
195195
}
196196

197197
output "peering_name" {

modules/private-cluster-update-variant/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ output "mesh_certificates_config" {
191191

192192
output "master_ipv4_cidr_block" {
193193
description = "The IP range in CIDR notation used for the hosted master network"
194-
value = google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block
194+
value = var.enable_private_nodes ? google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block : null
195195
}
196196

197197
output "peering_name" {

modules/private-cluster/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ output "mesh_certificates_config" {
191191

192192
output "master_ipv4_cidr_block" {
193193
description = "The IP range in CIDR notation used for the hosted master network"
194-
value = google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block
194+
value = var.enable_private_nodes ? google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block : null
195195
}
196196

197197
output "peering_name" {

test/integration/simple_regional_with_gateway_api/testdata/TestSimpleRegionalWithGatewayAPI.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@
200200
"mode": "GKE_METADATA"
201201
}
202202
},
203-
"locations": [
204-
"us-central1-a"
205-
],
206203
"management": {
207204
"autoRepair": true,
208205
"autoUpgrade": true

0 commit comments

Comments
 (0)