diff --git a/README.md b/README.md index 2d67693b64..9130ebb172 100644 --- a/README.md +++ b/README.md @@ -234,6 +234,11 @@ To more cleanly handle cases where desired functionality would require complex d The root module is generated by running `make generate`. Changes to this repository should be made in the [`autogen`](/autogen) directory where appropriate. +Note: The correct sequence to update the repo using autogen +functionality is the run `make generate && make generate_docs`. This +will create the various Terraform files, and then generate the +Terraform documentation using `terraform-docs`. + ## Testing ### Requirements diff --git a/cluster_regional.tf b/cluster_regional.tf index 3e1c78c87c..124fd8b21b 100644 --- a/cluster_regional.tf +++ b/cluster_regional.tf @@ -26,10 +26,10 @@ resource "google_container_cluster" "primary" { description = "${var.description}" project = "${var.project_id}" - region = "${var.region}" - node_locations = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"] + region = "${var.region}" + node_locations = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"] cluster_ipv4_cidr = "${var.cluster_ipv4_cidr}" - network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" + network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" network_policy { enabled = "${var.network_policy}" @@ -100,6 +100,7 @@ resource "google_container_cluster" "primary" { service_account = "${lookup(var.node_pools[0], "service_account", local.service_account)}" } } + remove_default_node_pool = "${var.remove_default_node_pool}" } diff --git a/cluster_zonal.tf b/cluster_zonal.tf index b37b8c3ff5..5f3735857e 100644 --- a/cluster_zonal.tf +++ b/cluster_zonal.tf @@ -26,10 +26,10 @@ resource "google_container_cluster" "zonal_primary" { description = "${var.description}" project = "${var.project_id}" - zone = "${var.zones[0]}" - node_locations = ["${slice(var.zones,1,length(var.zones))}"] + zone = "${var.zones[0]}" + node_locations = ["${slice(var.zones,1,length(var.zones))}"] cluster_ipv4_cidr = "${var.cluster_ipv4_cidr}" - network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" + network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" network_policy { enabled = "${var.network_policy}" @@ -100,6 +100,7 @@ resource "google_container_cluster" "zonal_primary" { service_account = "${lookup(var.node_pools[0], "service_account", local.service_account)}" } } + remove_default_node_pool = "${var.remove_default_node_pool}" } diff --git a/main.tf b/main.tf index e96d301c43..0b88544f21 100644 --- a/main.tf +++ b/main.tf @@ -128,19 +128,18 @@ locals { cluster_master_auth_map = "${local.cluster_master_auth_list_layer2[0]}" # cluster locals - cluster_name = "${local.cluster_type_output_name[local.cluster_type]}" - cluster_location = "${local.cluster_type_output_location[local.cluster_type]}" - cluster_region = "${local.cluster_type_output_region[local.cluster_type]}" - cluster_zones = "${sort(local.cluster_type_output_zones[local.cluster_type])}" - cluster_endpoint = "${local.cluster_type_output_endpoint[local.cluster_type]}" - cluster_ca_certificate = "${lookup(local.cluster_master_auth_map, "cluster_ca_certificate")}" - cluster_master_version = "${local.cluster_type_output_master_version[local.cluster_type]}" - cluster_min_master_version = "${local.cluster_type_output_min_master_version[local.cluster_type]}" - cluster_logging_service = "${local.cluster_type_output_logging_service[local.cluster_type]}" - cluster_monitoring_service = "${local.cluster_type_output_monitoring_service[local.cluster_type]}" - cluster_node_pools_names = "${local.cluster_type_output_node_pools_names[local.cluster_type]}" - cluster_node_pools_versions = "${local.cluster_type_output_node_pools_versions[local.cluster_type]}" - + cluster_name = "${local.cluster_type_output_name[local.cluster_type]}" + cluster_location = "${local.cluster_type_output_location[local.cluster_type]}" + cluster_region = "${local.cluster_type_output_region[local.cluster_type]}" + cluster_zones = "${sort(local.cluster_type_output_zones[local.cluster_type])}" + cluster_endpoint = "${local.cluster_type_output_endpoint[local.cluster_type]}" + cluster_ca_certificate = "${lookup(local.cluster_master_auth_map, "cluster_ca_certificate")}" + cluster_master_version = "${local.cluster_type_output_master_version[local.cluster_type]}" + cluster_min_master_version = "${local.cluster_type_output_min_master_version[local.cluster_type]}" + cluster_logging_service = "${local.cluster_type_output_logging_service[local.cluster_type]}" + cluster_monitoring_service = "${local.cluster_type_output_monitoring_service[local.cluster_type]}" + cluster_node_pools_names = "${local.cluster_type_output_node_pools_names[local.cluster_type]}" + cluster_node_pools_versions = "${local.cluster_type_output_node_pools_versions[local.cluster_type]}" cluster_network_policy_enabled = "${local.cluster_type_output_network_policy_enabled[local.cluster_type] ? false : true}" cluster_http_load_balancing_enabled = "${local.cluster_type_output_http_load_balancing_enabled[local.cluster_type] ? false : true}" cluster_horizontal_pod_autoscaling_enabled = "${local.cluster_type_output_horizontal_pod_autoscaling_enabled[local.cluster_type] ? false : true}" diff --git a/modules/beta-private-cluster/README.md b/modules/beta-private-cluster/README.md index ed9c02c795..00eb0bfb9b 100644 --- a/modules/beta-private-cluster/README.md +++ b/modules/beta-private-cluster/README.md @@ -253,6 +253,11 @@ To more cleanly handle cases where desired functionality would require complex d The root module is generated by running `make generate`. Changes to this repository should be made in the [`autogen`](/autogen) directory where appropriate. +Note: The correct sequence to update the repo using autogen +functionality is the run `make generate && make generate_docs`. This +will create the various Terraform files, and then generate the +Terraform documentation using `terraform-docs`. + ## Testing ### Requirements diff --git a/modules/beta-private-cluster/cluster_regional.tf b/modules/beta-private-cluster/cluster_regional.tf index f373d9a699..39c4e3a899 100644 --- a/modules/beta-private-cluster/cluster_regional.tf +++ b/modules/beta-private-cluster/cluster_regional.tf @@ -26,10 +26,10 @@ resource "google_container_cluster" "primary" { description = "${var.description}" project = "${var.project_id}" - region = "${var.region}" - node_locations = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"] + region = "${var.region}" + node_locations = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"] cluster_ipv4_cidr = "${var.cluster_ipv4_cidr}" - network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" + network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" network_policy { enabled = "${var.network_policy}" @@ -71,6 +71,7 @@ resource "google_container_cluster" "primary" { network_policy_config { disabled = "${var.network_policy ? 0 : 1}" } + istio_config { disabled = "${var.istio ? 0 : 1}" } @@ -109,11 +110,13 @@ resource "google_container_cluster" "primary" { service_account = "${lookup(var.node_pools[0], "service_account", local.service_account)}" } } + private_cluster_config { enable_private_endpoint = "${var.enable_private_endpoint}" enable_private_nodes = "${var.enable_private_nodes}" master_ipv4_cidr_block = "${var.master_ipv4_cidr_block}" } + remove_default_node_pool = "${var.remove_default_node_pool}" database_encryption = ["${var.database_encryption}"] } diff --git a/modules/beta-private-cluster/cluster_zonal.tf b/modules/beta-private-cluster/cluster_zonal.tf index 3adbeadddb..95697ce5b2 100644 --- a/modules/beta-private-cluster/cluster_zonal.tf +++ b/modules/beta-private-cluster/cluster_zonal.tf @@ -26,10 +26,10 @@ resource "google_container_cluster" "zonal_primary" { description = "${var.description}" project = "${var.project_id}" - zone = "${var.zones[0]}" - node_locations = ["${slice(var.zones,1,length(var.zones))}"] + zone = "${var.zones[0]}" + node_locations = ["${slice(var.zones,1,length(var.zones))}"] cluster_ipv4_cidr = "${var.cluster_ipv4_cidr}" - network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" + network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" network_policy { enabled = "${var.network_policy}" @@ -71,6 +71,7 @@ resource "google_container_cluster" "zonal_primary" { network_policy_config { disabled = "${var.network_policy ? 0 : 1}" } + istio_config { disabled = "${var.istio ? 0 : 1}" } @@ -109,11 +110,13 @@ resource "google_container_cluster" "zonal_primary" { service_account = "${lookup(var.node_pools[0], "service_account", local.service_account)}" } } + private_cluster_config { enable_private_endpoint = "${var.enable_private_endpoint}" enable_private_nodes = "${var.enable_private_nodes}" master_ipv4_cidr_block = "${var.master_ipv4_cidr_block}" } + remove_default_node_pool = "${var.remove_default_node_pool}" database_encryption = ["${var.database_encryption}"] } diff --git a/modules/beta-private-cluster/main.tf b/modules/beta-private-cluster/main.tf index 1694ce6007..f9ebd7f70a 100644 --- a/modules/beta-private-cluster/main.tf +++ b/modules/beta-private-cluster/main.tf @@ -151,18 +151,18 @@ locals { cluster_master_auth_list_layer2 = "${local.cluster_master_auth_list_layer1[0]}" cluster_master_auth_map = "${local.cluster_master_auth_list_layer2[0]}" # cluster locals - cluster_name = "${local.cluster_type_output_name[local.cluster_type]}" - cluster_location = "${local.cluster_type_output_location[local.cluster_type]}" - cluster_region = "${local.cluster_type_output_region[local.cluster_type]}" - cluster_zones = "${sort(local.cluster_type_output_zones[local.cluster_type])}" - cluster_endpoint = "${local.cluster_type_output_endpoint[local.cluster_type]}" - cluster_ca_certificate = "${lookup(local.cluster_master_auth_map, "cluster_ca_certificate")}" - cluster_master_version = "${local.cluster_type_output_master_version[local.cluster_type]}" - cluster_min_master_version = "${local.cluster_type_output_min_master_version[local.cluster_type]}" - cluster_logging_service = "${local.cluster_type_output_logging_service[local.cluster_type]}" - cluster_monitoring_service = "${local.cluster_type_output_monitoring_service[local.cluster_type]}" - cluster_node_pools_names = "${local.cluster_type_output_node_pools_names[local.cluster_type]}" - cluster_node_pools_versions = "${local.cluster_type_output_node_pools_versions[local.cluster_type]}" + cluster_name = "${local.cluster_type_output_name[local.cluster_type]}" + cluster_location = "${local.cluster_type_output_location[local.cluster_type]}" + cluster_region = "${local.cluster_type_output_region[local.cluster_type]}" + cluster_zones = "${sort(local.cluster_type_output_zones[local.cluster_type])}" + cluster_endpoint = "${local.cluster_type_output_endpoint[local.cluster_type]}" + cluster_ca_certificate = "${lookup(local.cluster_master_auth_map, "cluster_ca_certificate")}" + cluster_master_version = "${local.cluster_type_output_master_version[local.cluster_type]}" + cluster_min_master_version = "${local.cluster_type_output_min_master_version[local.cluster_type]}" + cluster_logging_service = "${local.cluster_type_output_logging_service[local.cluster_type]}" + cluster_monitoring_service = "${local.cluster_type_output_monitoring_service[local.cluster_type]}" + cluster_node_pools_names = "${local.cluster_type_output_node_pools_names[local.cluster_type]}" + cluster_node_pools_versions = "${local.cluster_type_output_node_pools_versions[local.cluster_type]}" cluster_network_policy_enabled = "${local.cluster_type_output_network_policy_enabled[local.cluster_type] ? false : true}" cluster_http_load_balancing_enabled = "${local.cluster_type_output_http_load_balancing_enabled[local.cluster_type] ? false : true}" cluster_horizontal_pod_autoscaling_enabled = "${local.cluster_type_output_horizontal_pod_autoscaling_enabled[local.cluster_type] ? false : true}" diff --git a/modules/beta-public-cluster/README.md b/modules/beta-public-cluster/README.md index a3981efb62..1e96939fb9 100644 --- a/modules/beta-public-cluster/README.md +++ b/modules/beta-public-cluster/README.md @@ -241,6 +241,11 @@ To more cleanly handle cases where desired functionality would require complex d The root module is generated by running `make generate`. Changes to this repository should be made in the [`autogen`](/autogen) directory where appropriate. +Note: The correct sequence to update the repo using autogen +functionality is the run `make generate && make generate_docs`. This +will create the various Terraform files, and then generate the +Terraform documentation using `terraform-docs`. + ## Testing ### Requirements diff --git a/modules/beta-public-cluster/cluster_regional.tf b/modules/beta-public-cluster/cluster_regional.tf index e67c9d1766..ad92b21d6e 100644 --- a/modules/beta-public-cluster/cluster_regional.tf +++ b/modules/beta-public-cluster/cluster_regional.tf @@ -26,10 +26,10 @@ resource "google_container_cluster" "primary" { description = "${var.description}" project = "${var.project_id}" - region = "${var.region}" - node_locations = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"] + region = "${var.region}" + node_locations = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"] cluster_ipv4_cidr = "${var.cluster_ipv4_cidr}" - network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" + network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" network_policy { enabled = "${var.network_policy}" @@ -69,6 +69,7 @@ resource "google_container_cluster" "primary" { network_policy_config { disabled = "${var.network_policy ? 0 : 1}" } + istio_config { disabled = "${var.istio ? 0 : 1}" } @@ -107,6 +108,7 @@ resource "google_container_cluster" "primary" { service_account = "${lookup(var.node_pools[0], "service_account", local.service_account)}" } } + remove_default_node_pool = "${var.remove_default_node_pool}" database_encryption = ["${var.database_encryption}"] } diff --git a/modules/beta-public-cluster/cluster_zonal.tf b/modules/beta-public-cluster/cluster_zonal.tf index c1c722f084..936c569c5a 100644 --- a/modules/beta-public-cluster/cluster_zonal.tf +++ b/modules/beta-public-cluster/cluster_zonal.tf @@ -26,10 +26,10 @@ resource "google_container_cluster" "zonal_primary" { description = "${var.description}" project = "${var.project_id}" - zone = "${var.zones[0]}" - node_locations = ["${slice(var.zones,1,length(var.zones))}"] + zone = "${var.zones[0]}" + node_locations = ["${slice(var.zones,1,length(var.zones))}"] cluster_ipv4_cidr = "${var.cluster_ipv4_cidr}" - network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" + network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" network_policy { enabled = "${var.network_policy}" @@ -69,6 +69,7 @@ resource "google_container_cluster" "zonal_primary" { network_policy_config { disabled = "${var.network_policy ? 0 : 1}" } + istio_config { disabled = "${var.istio ? 0 : 1}" } @@ -107,6 +108,7 @@ resource "google_container_cluster" "zonal_primary" { service_account = "${lookup(var.node_pools[0], "service_account", local.service_account)}" } } + remove_default_node_pool = "${var.remove_default_node_pool}" database_encryption = ["${var.database_encryption}"] } diff --git a/modules/beta-public-cluster/main.tf b/modules/beta-public-cluster/main.tf index 413da4e26c..83f4865b38 100644 --- a/modules/beta-public-cluster/main.tf +++ b/modules/beta-public-cluster/main.tf @@ -138,18 +138,18 @@ locals { cluster_master_auth_list_layer2 = "${local.cluster_master_auth_list_layer1[0]}" cluster_master_auth_map = "${local.cluster_master_auth_list_layer2[0]}" # cluster locals - cluster_name = "${local.cluster_type_output_name[local.cluster_type]}" - cluster_location = "${local.cluster_type_output_location[local.cluster_type]}" - cluster_region = "${local.cluster_type_output_region[local.cluster_type]}" - cluster_zones = "${sort(local.cluster_type_output_zones[local.cluster_type])}" - cluster_endpoint = "${local.cluster_type_output_endpoint[local.cluster_type]}" - cluster_ca_certificate = "${lookup(local.cluster_master_auth_map, "cluster_ca_certificate")}" - cluster_master_version = "${local.cluster_type_output_master_version[local.cluster_type]}" - cluster_min_master_version = "${local.cluster_type_output_min_master_version[local.cluster_type]}" - cluster_logging_service = "${local.cluster_type_output_logging_service[local.cluster_type]}" - cluster_monitoring_service = "${local.cluster_type_output_monitoring_service[local.cluster_type]}" - cluster_node_pools_names = "${local.cluster_type_output_node_pools_names[local.cluster_type]}" - cluster_node_pools_versions = "${local.cluster_type_output_node_pools_versions[local.cluster_type]}" + cluster_name = "${local.cluster_type_output_name[local.cluster_type]}" + cluster_location = "${local.cluster_type_output_location[local.cluster_type]}" + cluster_region = "${local.cluster_type_output_region[local.cluster_type]}" + cluster_zones = "${sort(local.cluster_type_output_zones[local.cluster_type])}" + cluster_endpoint = "${local.cluster_type_output_endpoint[local.cluster_type]}" + cluster_ca_certificate = "${lookup(local.cluster_master_auth_map, "cluster_ca_certificate")}" + cluster_master_version = "${local.cluster_type_output_master_version[local.cluster_type]}" + cluster_min_master_version = "${local.cluster_type_output_min_master_version[local.cluster_type]}" + cluster_logging_service = "${local.cluster_type_output_logging_service[local.cluster_type]}" + cluster_monitoring_service = "${local.cluster_type_output_monitoring_service[local.cluster_type]}" + cluster_node_pools_names = "${local.cluster_type_output_node_pools_names[local.cluster_type]}" + cluster_node_pools_versions = "${local.cluster_type_output_node_pools_versions[local.cluster_type]}" cluster_network_policy_enabled = "${local.cluster_type_output_network_policy_enabled[local.cluster_type] ? false : true}" cluster_http_load_balancing_enabled = "${local.cluster_type_output_http_load_balancing_enabled[local.cluster_type] ? false : true}" cluster_horizontal_pod_autoscaling_enabled = "${local.cluster_type_output_horizontal_pod_autoscaling_enabled[local.cluster_type] ? false : true}" diff --git a/modules/beta-public-cluster/outputs.tf b/modules/beta-public-cluster/outputs.tf index 548ca02749..eb24b144e3 100644 --- a/modules/beta-public-cluster/outputs.tf +++ b/modules/beta-public-cluster/outputs.tf @@ -122,4 +122,3 @@ output "cloudrun_enabled" { description = "Whether CloudRun enabled" value = "${local.cluster_cloudrun_enabled}" } - diff --git a/modules/private-cluster/README.md b/modules/private-cluster/README.md index 8f48f59b7a..3bc7d89eb0 100644 --- a/modules/private-cluster/README.md +++ b/modules/private-cluster/README.md @@ -246,6 +246,11 @@ To more cleanly handle cases where desired functionality would require complex d The root module is generated by running `make generate`. Changes to this repository should be made in the [`autogen`](/autogen) directory where appropriate. +Note: The correct sequence to update the repo using autogen +functionality is the run `make generate && make generate_docs`. This +will create the various Terraform files, and then generate the +Terraform documentation using `terraform-docs`. + ## Testing ### Requirements diff --git a/modules/private-cluster/cluster_regional.tf b/modules/private-cluster/cluster_regional.tf index 80465b866f..a2c8fcf10d 100644 --- a/modules/private-cluster/cluster_regional.tf +++ b/modules/private-cluster/cluster_regional.tf @@ -26,10 +26,10 @@ resource "google_container_cluster" "primary" { description = "${var.description}" project = "${var.project_id}" - region = "${var.region}" - node_locations = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"] + region = "${var.region}" + node_locations = ["${coalescelist(compact(var.zones), sort(random_shuffle.available_zones.result))}"] cluster_ipv4_cidr = "${var.cluster_ipv4_cidr}" - network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" + network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" network_policy { enabled = "${var.network_policy}" @@ -102,11 +102,13 @@ resource "google_container_cluster" "primary" { service_account = "${lookup(var.node_pools[0], "service_account", local.service_account)}" } } + private_cluster_config { enable_private_endpoint = "${var.enable_private_endpoint}" enable_private_nodes = "${var.enable_private_nodes}" master_ipv4_cidr_block = "${var.master_ipv4_cidr_block}" } + remove_default_node_pool = "${var.remove_default_node_pool}" } diff --git a/modules/private-cluster/cluster_zonal.tf b/modules/private-cluster/cluster_zonal.tf index 4849b50c04..1a824110df 100644 --- a/modules/private-cluster/cluster_zonal.tf +++ b/modules/private-cluster/cluster_zonal.tf @@ -26,10 +26,10 @@ resource "google_container_cluster" "zonal_primary" { description = "${var.description}" project = "${var.project_id}" - zone = "${var.zones[0]}" - node_locations = ["${slice(var.zones,1,length(var.zones))}"] + zone = "${var.zones[0]}" + node_locations = ["${slice(var.zones,1,length(var.zones))}"] cluster_ipv4_cidr = "${var.cluster_ipv4_cidr}" - network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" + network = "${replace(data.google_compute_network.gke_network.self_link, "https://www.googleapis.com/compute/v1/", "")}" network_policy { enabled = "${var.network_policy}" @@ -102,11 +102,13 @@ resource "google_container_cluster" "zonal_primary" { service_account = "${lookup(var.node_pools[0], "service_account", local.service_account)}" } } + private_cluster_config { enable_private_endpoint = "${var.enable_private_endpoint}" enable_private_nodes = "${var.enable_private_nodes}" master_ipv4_cidr_block = "${var.master_ipv4_cidr_block}" } + remove_default_node_pool = "${var.remove_default_node_pool}" } diff --git a/modules/private-cluster/main.tf b/modules/private-cluster/main.tf index 95e28ae4b3..ecb267e9ce 100644 --- a/modules/private-cluster/main.tf +++ b/modules/private-cluster/main.tf @@ -142,19 +142,18 @@ locals { cluster_master_auth_map = "${local.cluster_master_auth_list_layer2[0]}" # cluster locals - cluster_name = "${local.cluster_type_output_name[local.cluster_type]}" - cluster_location = "${local.cluster_type_output_location[local.cluster_type]}" - cluster_region = "${local.cluster_type_output_region[local.cluster_type]}" - cluster_zones = "${sort(local.cluster_type_output_zones[local.cluster_type])}" - cluster_endpoint = "${local.cluster_type_output_endpoint[local.cluster_type]}" - cluster_ca_certificate = "${lookup(local.cluster_master_auth_map, "cluster_ca_certificate")}" - cluster_master_version = "${local.cluster_type_output_master_version[local.cluster_type]}" - cluster_min_master_version = "${local.cluster_type_output_min_master_version[local.cluster_type]}" - cluster_logging_service = "${local.cluster_type_output_logging_service[local.cluster_type]}" - cluster_monitoring_service = "${local.cluster_type_output_monitoring_service[local.cluster_type]}" - cluster_node_pools_names = "${local.cluster_type_output_node_pools_names[local.cluster_type]}" - cluster_node_pools_versions = "${local.cluster_type_output_node_pools_versions[local.cluster_type]}" - + cluster_name = "${local.cluster_type_output_name[local.cluster_type]}" + cluster_location = "${local.cluster_type_output_location[local.cluster_type]}" + cluster_region = "${local.cluster_type_output_region[local.cluster_type]}" + cluster_zones = "${sort(local.cluster_type_output_zones[local.cluster_type])}" + cluster_endpoint = "${local.cluster_type_output_endpoint[local.cluster_type]}" + cluster_ca_certificate = "${lookup(local.cluster_master_auth_map, "cluster_ca_certificate")}" + cluster_master_version = "${local.cluster_type_output_master_version[local.cluster_type]}" + cluster_min_master_version = "${local.cluster_type_output_min_master_version[local.cluster_type]}" + cluster_logging_service = "${local.cluster_type_output_logging_service[local.cluster_type]}" + cluster_monitoring_service = "${local.cluster_type_output_monitoring_service[local.cluster_type]}" + cluster_node_pools_names = "${local.cluster_type_output_node_pools_names[local.cluster_type]}" + cluster_node_pools_versions = "${local.cluster_type_output_node_pools_versions[local.cluster_type]}" cluster_network_policy_enabled = "${local.cluster_type_output_network_policy_enabled[local.cluster_type] ? false : true}" cluster_http_load_balancing_enabled = "${local.cluster_type_output_http_load_balancing_enabled[local.cluster_type] ? false : true}" cluster_horizontal_pod_autoscaling_enabled = "${local.cluster_type_output_horizontal_pod_autoscaling_enabled[local.cluster_type] ? false : true}" diff --git a/modules/private-cluster/outputs.tf b/modules/private-cluster/outputs.tf index 7e31d6dcad..0cda908649 100644 --- a/modules/private-cluster/outputs.tf +++ b/modules/private-cluster/outputs.tf @@ -113,7 +113,6 @@ output "service_account" { value = "${local.service_account}" } - output "pod_security_policy_enabled" { description = "Whether pod security policy is enabled" value = "${local.cluster_pod_security_policy_enabled}" diff --git a/outputs.tf b/outputs.tf index aed604e3e6..6b9d5895ab 100644 --- a/outputs.tf +++ b/outputs.tf @@ -112,5 +112,3 @@ output "service_account" { description = "The service account to default running nodes as if not overridden in `node_pools`." value = "${local.service_account}" } - - diff --git a/variables.tf b/variables.tf index 7e47982e1e..a415672e88 100644 --- a/variables.tf +++ b/variables.tf @@ -237,8 +237,6 @@ variable "service_account" { default = "create" } - - variable "basic_auth_username" { description = "The username to be used with Basic Authentication. An empty value will disable Basic Authentication, which is the recommended configuration." default = ""