File tree Expand file tree Collapse file tree 9 files changed +12
-9
lines changed
beta-autopilot-private-cluster
beta-private-cluster-update-variant
private-cluster-update-variant Expand file tree Collapse file tree 9 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ locals {
144144 cluster_output_zones = local.cluster_output_regional_zones
145145
146146{% if private_cluster %}
147- 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
147+ cluster_endpoint = (var.enable_private_nodes && length(google_container_cluster.primary.private_cluster_config) > 0) ? (var.enable_private_endpoint || 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
148148 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
149149 cluster_endpoint_for_nodes = var.master_ipv4_cidr_block
150150{% else %}
Original file line number Diff line number Diff line change @@ -3,3 +3,6 @@ The v35.0 release of *kubernetes-engine* is a backwards incompatible release.
33
44### Google Cloud Platform Provider upgrade
55The Terraform Kubernetes Engine Module now requires version 6 of the Google Cloud Platform Providers. See the [ Terraform Google Provider 6.0.0 Upgrade Guide] ( https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/version_6_upgrade ) for more details.
6+
7+ ### Private Cluster Sub-Modules Endpoint Output
8+ The private cluster sub-modules now return the cluster's private endpoint for the ` endpoint ` output when the ` enable_private_endpoint ` argument is ` true ` , regardless of the ` deploy_using_private_endpoint ` argument value.
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ locals {
7777 cluster_output_regional_zones = google_container_cluster. primary . node_locations
7878 cluster_output_zones = local. cluster_output_regional_zones
7979
80- 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
80+ cluster_endpoint = (var. enable_private_nodes && length (google_container_cluster. primary . private_cluster_config ) > 0 ) ? (var. enable_private_endpoint || 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
8181 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
8282 cluster_endpoint_for_nodes = var. master_ipv4_cidr_block
8383
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ locals {
121121 cluster_output_regional_zones = google_container_cluster. primary . node_locations
122122 cluster_output_zones = local. cluster_output_regional_zones
123123
124- 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
124+ cluster_endpoint = (var. enable_private_nodes && length (google_container_cluster. primary . private_cluster_config ) > 0 ) ? (var. enable_private_endpoint || 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
125125 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
126126 cluster_endpoint_for_nodes = var. master_ipv4_cidr_block
127127
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ locals {
121121 cluster_output_regional_zones = google_container_cluster. primary . node_locations
122122 cluster_output_zones = local. cluster_output_regional_zones
123123
124- 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
124+ cluster_endpoint = (var. enable_private_nodes && length (google_container_cluster. primary . private_cluster_config ) > 0 ) ? (var. enable_private_endpoint || 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
125125 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
126126 cluster_endpoint_for_nodes = var. master_ipv4_cidr_block
127127
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ locals {
109109 cluster_output_regional_zones = google_container_cluster. primary . node_locations
110110 cluster_output_zones = local. cluster_output_regional_zones
111111
112- 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
112+ cluster_endpoint = (var. enable_private_nodes && length (google_container_cluster. primary . private_cluster_config ) > 0 ) ? (var. enable_private_endpoint || 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
113113 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
114114 cluster_endpoint_for_nodes = var. master_ipv4_cidr_block
115115
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ locals {
109109 cluster_output_regional_zones = google_container_cluster. primary . node_locations
110110 cluster_output_zones = local. cluster_output_regional_zones
111111
112- 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
112+ cluster_endpoint = (var. enable_private_nodes && length (google_container_cluster. primary . private_cluster_config ) > 0 ) ? (var. enable_private_endpoint || 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
113113 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
114114 cluster_endpoint_for_nodes = var. master_ipv4_cidr_block
115115
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ require (
88 github.com/GoogleCloudPlatform/cloud-foundation-toolkit/infra/blueprint-test v0.17.0
99 github.com/gruntwork-io/terratest v0.47.2
1010 github.com/hashicorp/terraform-json v0.23.0
11- github.com/stretchr/testify v1.9 .0
11+ github.com/stretchr/testify v1.10 .0
1212 github.com/tidwall/gjson v1.18.0
1313)
1414
Original file line number Diff line number Diff line change @@ -487,8 +487,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
487487github.com/stretchr/testify v1.7.1 /go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg =
488488github.com/stretchr/testify v1.8.0 /go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU =
489489github.com/stretchr/testify v1.8.1 /go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4 =
490- github.com/stretchr/testify v1.9 .0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
491- github.com/stretchr/testify v1.9 .0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
490+ github.com/stretchr/testify v1.10 .0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA =
491+ github.com/stretchr/testify v1.10 .0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
492492github.com/tidwall/gjson v1.14.2 /go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk =
493493github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY =
494494github.com/tidwall/gjson v1.18.0 /go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk =
You can’t perform that action at this time.
0 commit comments