File tree Expand file tree Collapse file tree 7 files changed +9
-6
lines changed
beta-autopilot-private-cluster
beta-private-cluster-update-variant
private-cluster-update-variant Expand file tree Collapse file tree 7 files changed +9
-6
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
You can’t perform that action at this time.
0 commit comments