Skip to content

Commit 2952c87

Browse files
committed
add missing dns_cache output in non beta
Signed-off-by: drfaust92 <[email protected]>
1 parent 4e148ed commit 2952c87

File tree

26 files changed

+69
-43
lines changed

26 files changed

+69
-43
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ module "gke" {
5050
network_policy = false
5151
horizontal_pod_autoscaling = true
5252
filestore_csi_driver = false
53+
dns_cache = false
5354
5455
node_pools = [
5556
{
@@ -238,6 +239,7 @@ Then perform the following commands on the root folder:
238239
|------|-------------|
239240
| ca\_certificate | Cluster ca certificate (base64 encoded) |
240241
| cluster\_id | Cluster ID |
242+
| dns\_cache\_enabled | Whether DNS Cache enabled |
241243
| endpoint | Cluster endpoint |
242244
| gateway\_api\_channel | The gateway api channel of this cluster. |
243245
| horizontal\_pod\_autoscaling\_enabled | Whether horizontal pod autoscaling enabled |

autogen/main/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ module "gke" {
9090
{% if beta_cluster and autopilot_cluster != true %}
9191
istio = true
9292
cloudrun = true
93-
dns_cache = false
9493
{% endif %}
94+
dns_cache = false
9595
9696
{% if autopilot_cluster != true %}
9797
node_pools = [

autogen/main/main.tf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ locals {
229229
{% if beta_cluster %}
230230
# BETA features
231231
cluster_istio_enabled = ! local.cluster_output_istio_disabled
232-
cluster_dns_cache_enabled = var.dns_cache
233232
{% if autopilot_cluster != true %}
234233
cluster_telemetry_type_is_set = var.cluster_telemetry_type != null
235234
{% endif %}
@@ -239,6 +238,7 @@ locals {
239238
# /BETA features
240239
{% endif %}
241240

241+
cluster_dns_cache_enabled = var.dns_cache
242242
cluster_maintenance_window_is_recurring = var.maintenance_recurrence != "" && var.maintenance_end_time != "" ? [1] : []
243243
cluster_maintenance_window_is_daily = length(local.cluster_maintenance_window_is_recurring) > 0 ? [] : [1]
244244
}

autogen/main/outputs.tf.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ output "peering_name" {
198198
value = local.cluster_peering_name
199199
}
200200
{% endif %}
201+
202+
output "dns_cache_enabled" {
203+
description = "Whether DNS Cache enabled"
204+
value = local.cluster_dns_cache_enabled
205+
}
201206
{% if beta_cluster %}
202207

203208
output "cloudrun_enabled" {
@@ -214,11 +219,6 @@ output "istio_enabled" {
214219
value = local.cluster_istio_enabled
215220
}
216221

217-
output "dns_cache_enabled" {
218-
description = "Whether DNS Cache enabled"
219-
value = local.cluster_dns_cache_enabled
220-
}
221-
222222
output "pod_security_policy_enabled" {
223223
description = "Whether pod security policy is enabled"
224224
value = local.cluster_pod_security_policy_enabled

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ locals {
168168
}] : []
169169

170170

171+
cluster_dns_cache_enabled = var.dns_cache
171172
cluster_maintenance_window_is_recurring = var.maintenance_recurrence != "" && var.maintenance_end_time != "" ? [1] : []
172173
cluster_maintenance_window_is_daily = length(local.cluster_maintenance_window_is_recurring) > 0 ? [] : [1]
173174
}

modules/beta-autopilot-private-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ module "gke" {
5454
enable_private_endpoint = true
5555
enable_private_nodes = true
5656
master_ipv4_cidr_block = "10.0.0.0/28"
57+
dns_cache = false
5758
5859
}
5960
```

modules/beta-autopilot-private-cluster/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ locals {
125125

126126
# BETA features
127127
cluster_istio_enabled = !local.cluster_output_istio_disabled
128-
cluster_dns_cache_enabled = var.dns_cache
129128
cluster_pod_security_policy_enabled = local.cluster_output_pod_security_policy_enabled
130129
cluster_intranode_visibility_enabled = local.cluster_output_intranode_visbility_enabled
131130

132131
# /BETA features
133132

133+
cluster_dns_cache_enabled = var.dns_cache
134134
cluster_maintenance_window_is_recurring = var.maintenance_recurrence != "" && var.maintenance_end_time != "" ? [1] : []
135135
cluster_maintenance_window_is_daily = length(local.cluster_maintenance_window_is_recurring) > 0 ? [] : [1]
136136
}

modules/beta-autopilot-private-cluster/outputs.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ output "peering_name" {
159159
value = local.cluster_peering_name
160160
}
161161

162+
output "dns_cache_enabled" {
163+
description = "Whether DNS Cache enabled"
164+
value = local.cluster_dns_cache_enabled
165+
}
166+
162167
output "cloudrun_enabled" {
163168
description = "Whether CloudRun enabled"
164169
value = false
@@ -169,11 +174,6 @@ output "istio_enabled" {
169174
value = local.cluster_istio_enabled
170175
}
171176

172-
output "dns_cache_enabled" {
173-
description = "Whether DNS Cache enabled"
174-
value = local.cluster_dns_cache_enabled
175-
}
176-
177177
output "pod_security_policy_enabled" {
178178
description = "Whether pod security policy is enabled"
179179
value = local.cluster_pod_security_policy_enabled

modules/beta-autopilot-public-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ module "gke" {
4848
ip_range_services = "us-central1-01-gke-01-services"
4949
horizontal_pod_autoscaling = true
5050
filestore_csi_driver = false
51+
dns_cache = false
5152
5253
}
5354
```

modules/beta-autopilot-public-cluster/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ locals {
124124

125125
# BETA features
126126
cluster_istio_enabled = !local.cluster_output_istio_disabled
127-
cluster_dns_cache_enabled = var.dns_cache
128127
cluster_pod_security_policy_enabled = local.cluster_output_pod_security_policy_enabled
129128
cluster_intranode_visibility_enabled = local.cluster_output_intranode_visbility_enabled
130129

131130
# /BETA features
132131

132+
cluster_dns_cache_enabled = var.dns_cache
133133
cluster_maintenance_window_is_recurring = var.maintenance_recurrence != "" && var.maintenance_end_time != "" ? [1] : []
134134
cluster_maintenance_window_is_daily = length(local.cluster_maintenance_window_is_recurring) > 0 ? [] : [1]
135135
}

modules/beta-autopilot-public-cluster/outputs.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ output "tpu_ipv4_cidr_block" {
149149

150150

151151

152+
output "dns_cache_enabled" {
153+
description = "Whether DNS Cache enabled"
154+
value = local.cluster_dns_cache_enabled
155+
}
156+
152157
output "cloudrun_enabled" {
153158
description = "Whether CloudRun enabled"
154159
value = false
@@ -159,11 +164,6 @@ output "istio_enabled" {
159164
value = local.cluster_istio_enabled
160165
}
161166

162-
output "dns_cache_enabled" {
163-
description = "Whether DNS Cache enabled"
164-
value = local.cluster_dns_cache_enabled
165-
}
166-
167167
output "pod_security_policy_enabled" {
168168
description = "Whether pod security policy is enabled"
169169
value = local.cluster_pod_security_policy_enabled

modules/beta-private-cluster-update-variant/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ locals {
188188

189189
# BETA features
190190
cluster_istio_enabled = !local.cluster_output_istio_disabled
191-
cluster_dns_cache_enabled = var.dns_cache
192191
cluster_telemetry_type_is_set = var.cluster_telemetry_type != null
193192
cluster_pod_security_policy_enabled = local.cluster_output_pod_security_policy_enabled
194193
cluster_intranode_visibility_enabled = local.cluster_output_intranode_visbility_enabled
195194

196195
# /BETA features
197196

197+
cluster_dns_cache_enabled = var.dns_cache
198198
cluster_maintenance_window_is_recurring = var.maintenance_recurrence != "" && var.maintenance_end_time != "" ? [1] : []
199199
cluster_maintenance_window_is_daily = length(local.cluster_maintenance_window_is_recurring) > 0 ? [] : [1]
200200
}

modules/beta-private-cluster-update-variant/outputs.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ output "peering_name" {
185185
value = local.cluster_peering_name
186186
}
187187

188+
output "dns_cache_enabled" {
189+
description = "Whether DNS Cache enabled"
190+
value = local.cluster_dns_cache_enabled
191+
}
192+
188193
output "cloudrun_enabled" {
189194
description = "Whether CloudRun enabled"
190195
value = local.cluster_cloudrun_enabled
@@ -195,11 +200,6 @@ output "istio_enabled" {
195200
value = local.cluster_istio_enabled
196201
}
197202

198-
output "dns_cache_enabled" {
199-
description = "Whether DNS Cache enabled"
200-
value = local.cluster_dns_cache_enabled
201-
}
202-
203203
output "pod_security_policy_enabled" {
204204
description = "Whether pod security policy is enabled"
205205
value = local.cluster_pod_security_policy_enabled

modules/beta-private-cluster/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ locals {
188188

189189
# BETA features
190190
cluster_istio_enabled = !local.cluster_output_istio_disabled
191-
cluster_dns_cache_enabled = var.dns_cache
192191
cluster_telemetry_type_is_set = var.cluster_telemetry_type != null
193192
cluster_pod_security_policy_enabled = local.cluster_output_pod_security_policy_enabled
194193
cluster_intranode_visibility_enabled = local.cluster_output_intranode_visbility_enabled
195194

196195
# /BETA features
197196

197+
cluster_dns_cache_enabled = var.dns_cache
198198
cluster_maintenance_window_is_recurring = var.maintenance_recurrence != "" && var.maintenance_end_time != "" ? [1] : []
199199
cluster_maintenance_window_is_daily = length(local.cluster_maintenance_window_is_recurring) > 0 ? [] : [1]
200200
}

modules/beta-private-cluster/outputs.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ output "peering_name" {
185185
value = local.cluster_peering_name
186186
}
187187

188+
output "dns_cache_enabled" {
189+
description = "Whether DNS Cache enabled"
190+
value = local.cluster_dns_cache_enabled
191+
}
192+
188193
output "cloudrun_enabled" {
189194
description = "Whether CloudRun enabled"
190195
value = local.cluster_cloudrun_enabled
@@ -195,11 +200,6 @@ output "istio_enabled" {
195200
value = local.cluster_istio_enabled
196201
}
197202

198-
output "dns_cache_enabled" {
199-
description = "Whether DNS Cache enabled"
200-
value = local.cluster_dns_cache_enabled
201-
}
202-
203203
output "pod_security_policy_enabled" {
204204
description = "Whether pod security policy is enabled"
205205
value = local.cluster_pod_security_policy_enabled

modules/beta-public-cluster-update-variant/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ locals {
187187

188188
# BETA features
189189
cluster_istio_enabled = !local.cluster_output_istio_disabled
190-
cluster_dns_cache_enabled = var.dns_cache
191190
cluster_telemetry_type_is_set = var.cluster_telemetry_type != null
192191
cluster_pod_security_policy_enabled = local.cluster_output_pod_security_policy_enabled
193192
cluster_intranode_visibility_enabled = local.cluster_output_intranode_visbility_enabled
194193

195194
# /BETA features
196195

196+
cluster_dns_cache_enabled = var.dns_cache
197197
cluster_maintenance_window_is_recurring = var.maintenance_recurrence != "" && var.maintenance_end_time != "" ? [1] : []
198198
cluster_maintenance_window_is_daily = length(local.cluster_maintenance_window_is_recurring) > 0 ? [] : [1]
199199
}

modules/beta-public-cluster-update-variant/outputs.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ output "mesh_certificates_config" {
175175
}
176176

177177

178+
output "dns_cache_enabled" {
179+
description = "Whether DNS Cache enabled"
180+
value = local.cluster_dns_cache_enabled
181+
}
182+
178183
output "cloudrun_enabled" {
179184
description = "Whether CloudRun enabled"
180185
value = local.cluster_cloudrun_enabled
@@ -185,11 +190,6 @@ output "istio_enabled" {
185190
value = local.cluster_istio_enabled
186191
}
187192

188-
output "dns_cache_enabled" {
189-
description = "Whether DNS Cache enabled"
190-
value = local.cluster_dns_cache_enabled
191-
}
192-
193193
output "pod_security_policy_enabled" {
194194
description = "Whether pod security policy is enabled"
195195
value = local.cluster_pod_security_policy_enabled

modules/beta-public-cluster/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ locals {
187187

188188
# BETA features
189189
cluster_istio_enabled = !local.cluster_output_istio_disabled
190-
cluster_dns_cache_enabled = var.dns_cache
191190
cluster_telemetry_type_is_set = var.cluster_telemetry_type != null
192191
cluster_pod_security_policy_enabled = local.cluster_output_pod_security_policy_enabled
193192
cluster_intranode_visibility_enabled = local.cluster_output_intranode_visbility_enabled
194193

195194
# /BETA features
196195

196+
cluster_dns_cache_enabled = var.dns_cache
197197
cluster_maintenance_window_is_recurring = var.maintenance_recurrence != "" && var.maintenance_end_time != "" ? [1] : []
198198
cluster_maintenance_window_is_daily = length(local.cluster_maintenance_window_is_recurring) > 0 ? [] : [1]
199199
}

modules/beta-public-cluster/outputs.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ output "mesh_certificates_config" {
175175
}
176176

177177

178+
output "dns_cache_enabled" {
179+
description = "Whether DNS Cache enabled"
180+
value = local.cluster_dns_cache_enabled
181+
}
182+
178183
output "cloudrun_enabled" {
179184
description = "Whether CloudRun enabled"
180185
value = local.cluster_cloudrun_enabled
@@ -185,11 +190,6 @@ output "istio_enabled" {
185190
value = local.cluster_istio_enabled
186191
}
187192

188-
output "dns_cache_enabled" {
189-
description = "Whether DNS Cache enabled"
190-
value = local.cluster_dns_cache_enabled
191-
}
192-
193193
output "pod_security_policy_enabled" {
194194
description = "Whether pod security policy is enabled"
195195
value = local.cluster_pod_security_policy_enabled

modules/private-cluster-update-variant/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ module "gke" {
7878
enable_private_endpoint = true
7979
enable_private_nodes = true
8080
master_ipv4_cidr_block = "10.0.0.0/28"
81+
dns_cache = false
8182
8283
node_pools = [
8384
{
@@ -271,6 +272,7 @@ Then perform the following commands on the root folder:
271272
|------|-------------|
272273
| ca\_certificate | Cluster ca certificate (base64 encoded) |
273274
| cluster\_id | Cluster ID |
275+
| dns\_cache\_enabled | Whether DNS Cache enabled |
274276
| endpoint | Cluster endpoint |
275277
| gateway\_api\_channel | The gateway api channel of this cluster. |
276278
| horizontal\_pod\_autoscaling\_enabled | Whether horizontal pod autoscaling enabled |

modules/private-cluster-update-variant/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ locals {
169169
}] : []
170170

171171

172+
cluster_dns_cache_enabled = var.dns_cache
172173
cluster_maintenance_window_is_recurring = var.maintenance_recurrence != "" && var.maintenance_end_time != "" ? [1] : []
173174
cluster_maintenance_window_is_daily = length(local.cluster_maintenance_window_is_recurring) > 0 ? [] : [1]
174175
}

modules/private-cluster-update-variant/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,8 @@ output "peering_name" {
184184
description = "The name of the peering between this cluster and the Google owned VPC."
185185
value = local.cluster_peering_name
186186
}
187+
188+
output "dns_cache_enabled" {
189+
description = "Whether DNS Cache enabled"
190+
value = local.cluster_dns_cache_enabled
191+
}

modules/private-cluster/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ module "gke" {
5656
enable_private_endpoint = true
5757
enable_private_nodes = true
5858
master_ipv4_cidr_block = "10.0.0.0/28"
59+
dns_cache = false
5960
6061
node_pools = [
6162
{
@@ -249,6 +250,7 @@ Then perform the following commands on the root folder:
249250
|------|-------------|
250251
| ca\_certificate | Cluster ca certificate (base64 encoded) |
251252
| cluster\_id | Cluster ID |
253+
| dns\_cache\_enabled | Whether DNS Cache enabled |
252254
| endpoint | Cluster endpoint |
253255
| gateway\_api\_channel | The gateway api channel of this cluster. |
254256
| horizontal\_pod\_autoscaling\_enabled | Whether horizontal pod autoscaling enabled |

modules/private-cluster/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ locals {
169169
}] : []
170170

171171

172+
cluster_dns_cache_enabled = var.dns_cache
172173
cluster_maintenance_window_is_recurring = var.maintenance_recurrence != "" && var.maintenance_end_time != "" ? [1] : []
173174
cluster_maintenance_window_is_daily = length(local.cluster_maintenance_window_is_recurring) > 0 ? [] : [1]
174175
}

modules/private-cluster/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,8 @@ output "peering_name" {
184184
description = "The name of the peering between this cluster and the Google owned VPC."
185185
value = local.cluster_peering_name
186186
}
187+
188+
output "dns_cache_enabled" {
189+
description = "Whether DNS Cache enabled"
190+
value = local.cluster_dns_cache_enabled
191+
}

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,8 @@ output "mesh_certificates_config" {
174174
]
175175
}
176176

177+
178+
output "dns_cache_enabled" {
179+
description = "Whether DNS Cache enabled"
180+
value = local.cluster_dns_cache_enabled
181+
}

0 commit comments

Comments
 (0)