Skip to content

Commit e93170d

Browse files
authored
feat: Expose additive_vpc_scope_dns_domain (#74)
* Expose additive_vpc_scope_dns_domain * Upgrade upstream module version
1 parent be162e1 commit e93170d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ locals {
153153
module "gke" {
154154
count = var.enable_private_gke ? 0 : 1
155155
source = "terraform-google-modules/kubernetes-engine/google"
156-
version = "33.1.0"
156+
version = "35.0.1"
157157

158158
name = var.cluster_name
159159
add_cluster_firewall_rules = var.add_cluster_firewall_rules
@@ -194,6 +194,7 @@ module "gke" {
194194
cluster_dns_provider = var.cluster_dns_provider
195195
cluster_dns_scope = var.cluster_dns_scope
196196
cluster_dns_domain = var.cluster_dns_domain
197+
additive_vpc_scope_dns_domain = var.additive_vpc_scope_dns_domain
197198
}
198199

199200
module "gke_private" {

variables.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ variable "cluster_dns_domain" {
8080
default = ""
8181
}
8282

83+
variable "additive_vpc_scope_dns_domain" {
84+
type = string
85+
description = "This will enable Cloud DNS additive VPC scope. Must provide a domain name that is unique within the VPC. For this to work cluster_dns = `CLOUD_DNS` and cluster_dns_scope = `CLUSTER_SCOPE` must both be set as well."
86+
default = ""
87+
}
88+
8389
variable "cluster_http_load_balancing" {
8490
default = true
8591
description = "Enable the HTTP load balancing addon for the cluster. Defaults to \"true\""
@@ -507,4 +513,4 @@ variable "enable_l4_ilb_subsetting" {
507513
type = bool
508514
description = "Enable L4 ILB Subsetting on the cluster, this cannot be disabled once it has been enabled."
509515
default = false
510-
}
516+
}

0 commit comments

Comments
 (0)