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" {
207207
208208output "master_ipv4_cidr_block" {
209209 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
211211}
212212
213213output "peering_name" {
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ output "tpu_ipv4_cidr_block" {
165165
166166output "master_ipv4_cidr_block" {
167167 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
169169}
170170
171171output "peering_name" {
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ output "mesh_certificates_config" {
192192
193193output "master_ipv4_cidr_block" {
194194 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
196196}
197197
198198output "peering_name" {
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ output "mesh_certificates_config" {
192192
193193output "master_ipv4_cidr_block" {
194194 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
196196}
197197
198198output "peering_name" {
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ output "mesh_certificates_config" {
192192
193193output "master_ipv4_cidr_block" {
194194 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
196196}
197197
198198output "peering_name" {
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ output "mesh_certificates_config" {
192192
193193output "master_ipv4_cidr_block" {
194194 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
196196}
197197
198198output "peering_name" {
Original file line number Diff line number Diff line change 200200 "mode" : " GKE_METADATA"
201201 }
202202 },
203- "locations" : [
204- " us-central1-a"
205- ],
206203 "management" : {
207204 "autoRepair" : true ,
208205 "autoUpgrade" : true
You can’t perform that action at this time.
0 commit comments