File tree Expand file tree Collapse file tree 7 files changed +6
-9
lines changed
beta-autopilot-private-cluster
beta-private-cluster-update-variant
private-cluster-update-variant
test/integration/simple_regional_with_gateway_api/testdata Expand file tree Collapse file tree 7 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ output "mesh_certificates_config" {
207
207
208
208
output "master_ipv4_cidr_block" {
209
209
description = "The IP range in CIDR notation used for the hosted master network"
210
- value = google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block
210
+ value = var.enable_private_nodes ? google_container_cluster.primary.private_cluster_config[0].master_ipv4_cidr_block : null
211
211
}
212
212
213
213
output "peering_name" {
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ output "tpu_ipv4_cidr_block" {
165
165
166
166
output "master_ipv4_cidr_block" {
167
167
description = " The IP range in CIDR notation used for the hosted master network"
168
- value = google_container_cluster. primary . private_cluster_config [0 ]. master_ipv4_cidr_block
168
+ value = var . enable_private_nodes ? google_container_cluster. primary . private_cluster_config [0 ]. master_ipv4_cidr_block : null
169
169
}
170
170
171
171
output "peering_name" {
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ output "mesh_certificates_config" {
192
192
193
193
output "master_ipv4_cidr_block" {
194
194
description = " The IP range in CIDR notation used for the hosted master network"
195
- value = google_container_cluster. primary . private_cluster_config [0 ]. master_ipv4_cidr_block
195
+ value = var . enable_private_nodes ? google_container_cluster. primary . private_cluster_config [0 ]. master_ipv4_cidr_block : null
196
196
}
197
197
198
198
output "peering_name" {
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ output "mesh_certificates_config" {
192
192
193
193
output "master_ipv4_cidr_block" {
194
194
description = " The IP range in CIDR notation used for the hosted master network"
195
- value = google_container_cluster. primary . private_cluster_config [0 ]. master_ipv4_cidr_block
195
+ value = var . enable_private_nodes ? google_container_cluster. primary . private_cluster_config [0 ]. master_ipv4_cidr_block : null
196
196
}
197
197
198
198
output "peering_name" {
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ output "mesh_certificates_config" {
192
192
193
193
output "master_ipv4_cidr_block" {
194
194
description = " The IP range in CIDR notation used for the hosted master network"
195
- value = google_container_cluster. primary . private_cluster_config [0 ]. master_ipv4_cidr_block
195
+ value = var . enable_private_nodes ? google_container_cluster. primary . private_cluster_config [0 ]. master_ipv4_cidr_block : null
196
196
}
197
197
198
198
output "peering_name" {
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ output "mesh_certificates_config" {
192
192
193
193
output "master_ipv4_cidr_block" {
194
194
description = " The IP range in CIDR notation used for the hosted master network"
195
- value = google_container_cluster. primary . private_cluster_config [0 ]. master_ipv4_cidr_block
195
+ value = var . enable_private_nodes ? google_container_cluster. primary . private_cluster_config [0 ]. master_ipv4_cidr_block : null
196
196
}
197
197
198
198
output "peering_name" {
Original file line number Diff line number Diff line change 200
200
"mode" : " GKE_METADATA"
201
201
}
202
202
},
203
- "locations" : [
204
- " us-central1-a"
205
- ],
206
203
"management" : {
207
204
"autoRepair" : true ,
208
205
"autoUpgrade" : true
You can’t perform that action at this time.
0 commit comments