diff --git a/main.tf b/main.tf index ac54ce8228dc4afe13e129cdf1c4509d06d876d3..e451890f3b709da94a4c5b0e0d721237b0bb384f 100644 --- a/main.tf +++ b/main.tf @@ -30,13 +30,6 @@ resource "google_container_cluster" "cluster" { name = var.name min_master_version = data.google_container_engine_versions.region_versions.latest_master_version - # Terraform gets confused about this setting. The self_link and network data object include the googleapis URL but - # they are not present once they have been configured in gke. We remove the prefix to avoid detecting this as - # a modification every single time. - network = replace(var.network, "https://www.googleapis.com/compute/v1/", "") - - subnetwork = replace(var.subnetwork, "https://www.googleapis.com/compute/v1/", "") - ip_allocation_policy { cluster_secondary_range_name = var.cluster_secondary_range_name services_secondary_range_name = var.services_secondary_range_name diff --git a/variables.tf b/variables.tf index 4d7652039f7272b26956a79c22481e0dfd9f2731..6dba0e175b0aefc4b4e50f2819f9eb2f32f4efc3 100644 --- a/variables.tf +++ b/variables.tf @@ -21,16 +21,6 @@ variable "name" { description = "Name of the cluster" } -variable "network" { - default = "" - description = "Network to use for the VMs forming the cluster" -} - -variable "subnetwork" { - default = "" - description = "Subnetwork to use for the VMs forming the cluster" -} - variable "cluster_secondary_range_name" { default = null