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 @@ -206,7 +206,7 @@ output "mesh_certificates_config" {
206206
207207output "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
212212output "peering_name" {
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ output "tpu_ipv4_cidr_block" {
164164
165165output "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
170170output "peering_name" {
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ output "mesh_certificates_config" {
191191
192192output "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
197197output "peering_name" {
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ output "mesh_certificates_config" {
191191
192192output "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
197197output "peering_name" {
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ output "mesh_certificates_config" {
191191
192192output "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
197197output "peering_name" {
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ output "mesh_certificates_config" {
191191
192192output "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
197197output "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