Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
fixes after CR: default services_secondary_range_name to null.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Storchevoy committed Mar 31, 2020
1 parent 95a33a5 commit 89e4f93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gke-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ resource "google_container_cluster" "cluster" {
ip_allocation_policy {
// Choose the range, but let GCP pick the IPs within the range
cluster_secondary_range_name = var.cluster_secondary_range_name
services_secondary_range_name = var.services_secondary_range_name != "" ? var.services_secondary_range_name : var.cluster_secondary_range_name
services_secondary_range_name = var.services_secondary_range_name != null ? var.services_secondary_range_name : var.cluster_secondary_range_name
}

# We can optionally control access to the cluster
Expand Down
2 changes: 1 addition & 1 deletion modules/gke-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,5 @@ variable "enable_vertical_pod_autoscaling" {
variable "services_secondary_range_name" {
description = "The name of the secondary range within the subnetwork for the services to use"
type = string
default = ""
default = null
}

0 comments on commit 89e4f93

Please sign in to comment.