FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 452e4e1e authored by Dr Abraham Martin's avatar Dr Abraham Martin
Browse files

Remove `network` and `subnetwork` variables.

parent 48c8546b
No related branches found
No related tags found
1 merge request!19Remove `network` and `subnetwork` variables.
Pipeline #52065 passed
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment