File tree Expand file tree Collapse file tree 13 files changed +19
-17
lines changed
examples/safer_cluster_iap_bastion
beta-autopilot-private-cluster
beta-private-cluster-update-variant
beta-public-cluster-update-variant
private-cluster-update-variant
test/fixtures/safer_cluster_iap_bastion Expand file tree Collapse file tree 13 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ locals {
146146 cluster_output_zones = local.cluster_output_regional_zones
147147
148148{% if private_cluster %}
149- 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
149+ cluster_endpoint = var.deploy_using_private_endpoint || var.enable_private_endpoint ? google_container_cluster.primary.control_plane_endpoints_config [0].dns_endpoint_config [0].endpoint : google_container_cluster.primary.endpoint
150150 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
151151 cluster_endpoint_for_nodes = var.master_ipv4_cidr_block
152152{% else %}
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ terraform {
2424 required_providers {
2525 google = {
2626 source = "hashicorp/google"
27- version = ">= 6.7 .0, < 7"
27+ version = ">= 6.11 .0, < 7"
2828 }
2929 google-beta = {
3030 source = "hashicorp/google-beta"
31- version = ">= 6.7 .0, < 7"
31+ version = ">= 6.11 .0, < 7"
3232 }
3333 kubernetes = {
3434 source = "hashicorp/kubernetes"
Original file line number Diff line number Diff line change @@ -34,4 +34,6 @@ module "bastion" {
3434 startup_script = templatefile (" ${ path . module } /templates/startup-script.tftpl" , {})
3535 members = var. bastion_members
3636 shielded_vm = " false"
37+
38+ service_account_roles = [" roles/container.viewer" ]
3739}
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. deploy_using_private_endpoint || var. enable_private_endpoint ? google_container_cluster. primary . control_plane_endpoints_config [0 ]. dns_endpoint_config [0 ]. 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 @@ -123,7 +123,7 @@ locals {
123123 cluster_output_regional_zones = google_container_cluster. primary . node_locations
124124 cluster_output_zones = local. cluster_output_regional_zones
125125
126- 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
126+ cluster_endpoint = var. deploy_using_private_endpoint || var. enable_private_endpoint ? google_container_cluster. primary . control_plane_endpoints_config [0 ]. dns_endpoint_config [0 ]. endpoint : google_container_cluster. primary . endpoint
127127 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
128128 cluster_endpoint_for_nodes = var. master_ipv4_cidr_block
129129
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ terraform {
2121 required_providers {
2222 google = {
2323 source = " hashicorp/google"
24- version = " >= 6.7 .0, < 7"
24+ version = " >= 6.11 .0, < 7"
2525 }
2626 google-beta = {
2727 source = " hashicorp/google-beta"
28- version = " >= 6.7 .0, < 7"
28+ version = " >= 6.11 .0, < 7"
2929 }
3030 kubernetes = {
3131 source = " hashicorp/kubernetes"
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ locals {
123123 cluster_output_regional_zones = google_container_cluster. primary . node_locations
124124 cluster_output_zones = local. cluster_output_regional_zones
125125
126- 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
126+ cluster_endpoint = var. deploy_using_private_endpoint || var. enable_private_endpoint ? google_container_cluster. primary . control_plane_endpoints_config [0 ]. dns_endpoint_config [0 ]. endpoint : google_container_cluster. primary . endpoint
127127 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
128128 cluster_endpoint_for_nodes = var. master_ipv4_cidr_block
129129
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ terraform {
2121 required_providers {
2222 google = {
2323 source = " hashicorp/google"
24- version = " >= 6.7 .0, < 7"
24+ version = " >= 6.11 .0, < 7"
2525 }
2626 google-beta = {
2727 source = " hashicorp/google-beta"
28- version = " >= 6.7 .0, < 7"
28+ version = " >= 6.11 .0, < 7"
2929 }
3030 kubernetes = {
3131 source = " hashicorp/kubernetes"
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ terraform {
2121 required_providers {
2222 google = {
2323 source = " hashicorp/google"
24- version = " >= 6.7 .0, < 7"
24+ version = " >= 6.11 .0, < 7"
2525 }
2626 google-beta = {
2727 source = " hashicorp/google-beta"
28- version = " >= 6.7 .0, < 7"
28+ version = " >= 6.11 .0, < 7"
2929 }
3030 kubernetes = {
3131 source = " hashicorp/kubernetes"
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ terraform {
2121 required_providers {
2222 google = {
2323 source = " hashicorp/google"
24- version = " >= 6.7 .0, < 7"
24+ version = " >= 6.11 .0, < 7"
2525 }
2626 google-beta = {
2727 source = " hashicorp/google-beta"
28- version = " >= 6.7 .0, < 7"
28+ version = " >= 6.11 .0, < 7"
2929 }
3030 kubernetes = {
3131 source = " hashicorp/kubernetes"
You can’t perform that action at this time.
0 commit comments