File tree Expand file tree Collapse file tree 26 files changed +69
-43
lines changed
beta-autopilot-private-cluster
beta-autopilot-public-cluster
beta-private-cluster-update-variant
beta-public-cluster-update-variant
private-cluster-update-variant Expand file tree Collapse file tree 26 files changed +69
-43
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ module "gke" {
50
50
network_policy = false
51
51
horizontal_pod_autoscaling = true
52
52
filestore_csi_driver = false
53
+ dns_cache = false
53
54
54
55
node_pools = [
55
56
{
@@ -238,6 +239,7 @@ Then perform the following commands on the root folder:
238
239
| ------| -------------|
239
240
| ca\_ certificate | Cluster ca certificate (base64 encoded) |
240
241
| cluster\_ id | Cluster ID |
242
+ | dns\_ cache\_ enabled | Whether DNS Cache enabled |
241
243
| endpoint | Cluster endpoint |
242
244
| gateway\_ api\_ channel | The gateway api channel of this cluster. |
243
245
| horizontal\_ pod\_ autoscaling\_ enabled | Whether horizontal pod autoscaling enabled |
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ module "gke" {
90
90
{% if beta_cluster and autopilot_cluster != true %}
91
91
istio = true
92
92
cloudrun = true
93
- dns_cache = false
94
93
{% endif %}
94
+ dns_cache = false
95
95
96
96
{% if autopilot_cluster != true %}
97
97
node_pools = [
Original file line number Diff line number Diff line change @@ -229,7 +229,6 @@ locals {
229
229
{% if beta_cluster %}
230
230
# BETA features
231
231
cluster_istio_enabled = ! local.cluster_output_istio_disabled
232
- cluster_dns_cache_enabled = var.dns_cache
233
232
{% if autopilot_cluster != true %}
234
233
cluster_telemetry_type_is_set = var.cluster_telemetry_type != null
235
234
{% endif %}
@@ -239,6 +238,7 @@ locals {
239
238
# /BETA features
240
239
{% endif %}
241
240
241
+ cluster_dns_cache_enabled = var.dns_cache
242
242
cluster_maintenance_window_is_recurring = var.maintenance_recurrence != "" && var.maintenance_end_time != "" ? [1] : []
243
243
cluster_maintenance_window_is_daily = length(local.cluster_maintenance_window_is_recurring) > 0 ? [] : [1]
244
244
}
Original file line number Diff line number Diff line change @@ -198,6 +198,11 @@ output "peering_name" {
198
198
value = local.cluster_peering_name
199
199
}
200
200
{% endif %}
201
+
202
+ output "dns_cache_enabled" {
203
+ description = "Whether DNS Cache enabled"
204
+ value = local.cluster_dns_cache_enabled
205
+ }
201
206
{% if beta_cluster %}
202
207
203
208
output "cloudrun_enabled" {
@@ -214,11 +219,6 @@ output "istio_enabled" {
214
219
value = local.cluster_istio_enabled
215
220
}
216
221
217
- output "dns_cache_enabled" {
218
- description = "Whether DNS Cache enabled"
219
- value = local.cluster_dns_cache_enabled
220
- }
221
-
222
222
output "pod_security_policy_enabled" {
223
223
description = "Whether pod security policy is enabled"
224
224
value = local.cluster_pod_security_policy_enabled
Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ locals {
168
168
}] : []
169
169
170
170
171
+ cluster_dns_cache_enabled = var. dns_cache
171
172
cluster_maintenance_window_is_recurring = var. maintenance_recurrence != " " && var. maintenance_end_time != " " ? [1 ] : []
172
173
cluster_maintenance_window_is_daily = length (local. cluster_maintenance_window_is_recurring ) > 0 ? [] : [1 ]
173
174
}
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ module "gke" {
54
54
enable_private_endpoint = true
55
55
enable_private_nodes = true
56
56
master_ipv4_cidr_block = "10.0.0.0/28"
57
+ dns_cache = false
57
58
58
59
}
59
60
```
Original file line number Diff line number Diff line change @@ -125,12 +125,12 @@ locals {
125
125
126
126
# BETA features
127
127
cluster_istio_enabled = ! local. cluster_output_istio_disabled
128
- cluster_dns_cache_enabled = var. dns_cache
129
128
cluster_pod_security_policy_enabled = local. cluster_output_pod_security_policy_enabled
130
129
cluster_intranode_visibility_enabled = local. cluster_output_intranode_visbility_enabled
131
130
132
131
# /BETA features
133
132
133
+ cluster_dns_cache_enabled = var. dns_cache
134
134
cluster_maintenance_window_is_recurring = var. maintenance_recurrence != " " && var. maintenance_end_time != " " ? [1 ] : []
135
135
cluster_maintenance_window_is_daily = length (local. cluster_maintenance_window_is_recurring ) > 0 ? [] : [1 ]
136
136
}
Original file line number Diff line number Diff line change @@ -159,6 +159,11 @@ output "peering_name" {
159
159
value = local. cluster_peering_name
160
160
}
161
161
162
+ output "dns_cache_enabled" {
163
+ description = " Whether DNS Cache enabled"
164
+ value = local. cluster_dns_cache_enabled
165
+ }
166
+
162
167
output "cloudrun_enabled" {
163
168
description = " Whether CloudRun enabled"
164
169
value = false
@@ -169,11 +174,6 @@ output "istio_enabled" {
169
174
value = local. cluster_istio_enabled
170
175
}
171
176
172
- output "dns_cache_enabled" {
173
- description = " Whether DNS Cache enabled"
174
- value = local. cluster_dns_cache_enabled
175
- }
176
-
177
177
output "pod_security_policy_enabled" {
178
178
description = " Whether pod security policy is enabled"
179
179
value = local. cluster_pod_security_policy_enabled
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ module "gke" {
48
48
ip_range_services = "us-central1-01-gke-01-services"
49
49
horizontal_pod_autoscaling = true
50
50
filestore_csi_driver = false
51
+ dns_cache = false
51
52
52
53
}
53
54
```
Original file line number Diff line number Diff line change @@ -124,12 +124,12 @@ locals {
124
124
125
125
# BETA features
126
126
cluster_istio_enabled = ! local. cluster_output_istio_disabled
127
- cluster_dns_cache_enabled = var. dns_cache
128
127
cluster_pod_security_policy_enabled = local. cluster_output_pod_security_policy_enabled
129
128
cluster_intranode_visibility_enabled = local. cluster_output_intranode_visbility_enabled
130
129
131
130
# /BETA features
132
131
132
+ cluster_dns_cache_enabled = var. dns_cache
133
133
cluster_maintenance_window_is_recurring = var. maintenance_recurrence != " " && var. maintenance_end_time != " " ? [1 ] : []
134
134
cluster_maintenance_window_is_daily = length (local. cluster_maintenance_window_is_recurring ) > 0 ? [] : [1 ]
135
135
}
Original file line number Diff line number Diff line change @@ -149,6 +149,11 @@ output "tpu_ipv4_cidr_block" {
149
149
150
150
151
151
152
+ output "dns_cache_enabled" {
153
+ description = " Whether DNS Cache enabled"
154
+ value = local. cluster_dns_cache_enabled
155
+ }
156
+
152
157
output "cloudrun_enabled" {
153
158
description = " Whether CloudRun enabled"
154
159
value = false
@@ -159,11 +164,6 @@ output "istio_enabled" {
159
164
value = local. cluster_istio_enabled
160
165
}
161
166
162
- output "dns_cache_enabled" {
163
- description = " Whether DNS Cache enabled"
164
- value = local. cluster_dns_cache_enabled
165
- }
166
-
167
167
output "pod_security_policy_enabled" {
168
168
description = " Whether pod security policy is enabled"
169
169
value = local. cluster_pod_security_policy_enabled
Original file line number Diff line number Diff line change @@ -188,13 +188,13 @@ locals {
188
188
189
189
# BETA features
190
190
cluster_istio_enabled = ! local. cluster_output_istio_disabled
191
- cluster_dns_cache_enabled = var. dns_cache
192
191
cluster_telemetry_type_is_set = var. cluster_telemetry_type != null
193
192
cluster_pod_security_policy_enabled = local. cluster_output_pod_security_policy_enabled
194
193
cluster_intranode_visibility_enabled = local. cluster_output_intranode_visbility_enabled
195
194
196
195
# /BETA features
197
196
197
+ cluster_dns_cache_enabled = var. dns_cache
198
198
cluster_maintenance_window_is_recurring = var. maintenance_recurrence != " " && var. maintenance_end_time != " " ? [1 ] : []
199
199
cluster_maintenance_window_is_daily = length (local. cluster_maintenance_window_is_recurring ) > 0 ? [] : [1 ]
200
200
}
Original file line number Diff line number Diff line change @@ -185,6 +185,11 @@ output "peering_name" {
185
185
value = local. cluster_peering_name
186
186
}
187
187
188
+ output "dns_cache_enabled" {
189
+ description = " Whether DNS Cache enabled"
190
+ value = local. cluster_dns_cache_enabled
191
+ }
192
+
188
193
output "cloudrun_enabled" {
189
194
description = " Whether CloudRun enabled"
190
195
value = local. cluster_cloudrun_enabled
@@ -195,11 +200,6 @@ output "istio_enabled" {
195
200
value = local. cluster_istio_enabled
196
201
}
197
202
198
- output "dns_cache_enabled" {
199
- description = " Whether DNS Cache enabled"
200
- value = local. cluster_dns_cache_enabled
201
- }
202
-
203
203
output "pod_security_policy_enabled" {
204
204
description = " Whether pod security policy is enabled"
205
205
value = local. cluster_pod_security_policy_enabled
Original file line number Diff line number Diff line change @@ -188,13 +188,13 @@ locals {
188
188
189
189
# BETA features
190
190
cluster_istio_enabled = ! local. cluster_output_istio_disabled
191
- cluster_dns_cache_enabled = var. dns_cache
192
191
cluster_telemetry_type_is_set = var. cluster_telemetry_type != null
193
192
cluster_pod_security_policy_enabled = local. cluster_output_pod_security_policy_enabled
194
193
cluster_intranode_visibility_enabled = local. cluster_output_intranode_visbility_enabled
195
194
196
195
# /BETA features
197
196
197
+ cluster_dns_cache_enabled = var. dns_cache
198
198
cluster_maintenance_window_is_recurring = var. maintenance_recurrence != " " && var. maintenance_end_time != " " ? [1 ] : []
199
199
cluster_maintenance_window_is_daily = length (local. cluster_maintenance_window_is_recurring ) > 0 ? [] : [1 ]
200
200
}
Original file line number Diff line number Diff line change @@ -185,6 +185,11 @@ output "peering_name" {
185
185
value = local. cluster_peering_name
186
186
}
187
187
188
+ output "dns_cache_enabled" {
189
+ description = " Whether DNS Cache enabled"
190
+ value = local. cluster_dns_cache_enabled
191
+ }
192
+
188
193
output "cloudrun_enabled" {
189
194
description = " Whether CloudRun enabled"
190
195
value = local. cluster_cloudrun_enabled
@@ -195,11 +200,6 @@ output "istio_enabled" {
195
200
value = local. cluster_istio_enabled
196
201
}
197
202
198
- output "dns_cache_enabled" {
199
- description = " Whether DNS Cache enabled"
200
- value = local. cluster_dns_cache_enabled
201
- }
202
-
203
203
output "pod_security_policy_enabled" {
204
204
description = " Whether pod security policy is enabled"
205
205
value = local. cluster_pod_security_policy_enabled
Original file line number Diff line number Diff line change @@ -187,13 +187,13 @@ locals {
187
187
188
188
# BETA features
189
189
cluster_istio_enabled = ! local. cluster_output_istio_disabled
190
- cluster_dns_cache_enabled = var. dns_cache
191
190
cluster_telemetry_type_is_set = var. cluster_telemetry_type != null
192
191
cluster_pod_security_policy_enabled = local. cluster_output_pod_security_policy_enabled
193
192
cluster_intranode_visibility_enabled = local. cluster_output_intranode_visbility_enabled
194
193
195
194
# /BETA features
196
195
196
+ cluster_dns_cache_enabled = var. dns_cache
197
197
cluster_maintenance_window_is_recurring = var. maintenance_recurrence != " " && var. maintenance_end_time != " " ? [1 ] : []
198
198
cluster_maintenance_window_is_daily = length (local. cluster_maintenance_window_is_recurring ) > 0 ? [] : [1 ]
199
199
}
Original file line number Diff line number Diff line change @@ -175,6 +175,11 @@ output "mesh_certificates_config" {
175
175
}
176
176
177
177
178
+ output "dns_cache_enabled" {
179
+ description = " Whether DNS Cache enabled"
180
+ value = local. cluster_dns_cache_enabled
181
+ }
182
+
178
183
output "cloudrun_enabled" {
179
184
description = " Whether CloudRun enabled"
180
185
value = local. cluster_cloudrun_enabled
@@ -185,11 +190,6 @@ output "istio_enabled" {
185
190
value = local. cluster_istio_enabled
186
191
}
187
192
188
- output "dns_cache_enabled" {
189
- description = " Whether DNS Cache enabled"
190
- value = local. cluster_dns_cache_enabled
191
- }
192
-
193
193
output "pod_security_policy_enabled" {
194
194
description = " Whether pod security policy is enabled"
195
195
value = local. cluster_pod_security_policy_enabled
Original file line number Diff line number Diff line change @@ -187,13 +187,13 @@ locals {
187
187
188
188
# BETA features
189
189
cluster_istio_enabled = ! local. cluster_output_istio_disabled
190
- cluster_dns_cache_enabled = var. dns_cache
191
190
cluster_telemetry_type_is_set = var. cluster_telemetry_type != null
192
191
cluster_pod_security_policy_enabled = local. cluster_output_pod_security_policy_enabled
193
192
cluster_intranode_visibility_enabled = local. cluster_output_intranode_visbility_enabled
194
193
195
194
# /BETA features
196
195
196
+ cluster_dns_cache_enabled = var. dns_cache
197
197
cluster_maintenance_window_is_recurring = var. maintenance_recurrence != " " && var. maintenance_end_time != " " ? [1 ] : []
198
198
cluster_maintenance_window_is_daily = length (local. cluster_maintenance_window_is_recurring ) > 0 ? [] : [1 ]
199
199
}
Original file line number Diff line number Diff line change @@ -175,6 +175,11 @@ output "mesh_certificates_config" {
175
175
}
176
176
177
177
178
+ output "dns_cache_enabled" {
179
+ description = " Whether DNS Cache enabled"
180
+ value = local. cluster_dns_cache_enabled
181
+ }
182
+
178
183
output "cloudrun_enabled" {
179
184
description = " Whether CloudRun enabled"
180
185
value = local. cluster_cloudrun_enabled
@@ -185,11 +190,6 @@ output "istio_enabled" {
185
190
value = local. cluster_istio_enabled
186
191
}
187
192
188
- output "dns_cache_enabled" {
189
- description = " Whether DNS Cache enabled"
190
- value = local. cluster_dns_cache_enabled
191
- }
192
-
193
193
output "pod_security_policy_enabled" {
194
194
description = " Whether pod security policy is enabled"
195
195
value = local. cluster_pod_security_policy_enabled
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ module "gke" {
78
78
enable_private_endpoint = true
79
79
enable_private_nodes = true
80
80
master_ipv4_cidr_block = "10.0.0.0/28"
81
+ dns_cache = false
81
82
82
83
node_pools = [
83
84
{
@@ -271,6 +272,7 @@ Then perform the following commands on the root folder:
271
272
| ------| -------------|
272
273
| ca\_ certificate | Cluster ca certificate (base64 encoded) |
273
274
| cluster\_ id | Cluster ID |
275
+ | dns\_ cache\_ enabled | Whether DNS Cache enabled |
274
276
| endpoint | Cluster endpoint |
275
277
| gateway\_ api\_ channel | The gateway api channel of this cluster. |
276
278
| horizontal\_ pod\_ autoscaling\_ enabled | Whether horizontal pod autoscaling enabled |
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ locals {
169
169
}] : []
170
170
171
171
172
+ cluster_dns_cache_enabled = var. dns_cache
172
173
cluster_maintenance_window_is_recurring = var. maintenance_recurrence != " " && var. maintenance_end_time != " " ? [1 ] : []
173
174
cluster_maintenance_window_is_daily = length (local. cluster_maintenance_window_is_recurring ) > 0 ? [] : [1 ]
174
175
}
Original file line number Diff line number Diff line change @@ -184,3 +184,8 @@ output "peering_name" {
184
184
description = " The name of the peering between this cluster and the Google owned VPC."
185
185
value = local. cluster_peering_name
186
186
}
187
+
188
+ output "dns_cache_enabled" {
189
+ description = " Whether DNS Cache enabled"
190
+ value = local. cluster_dns_cache_enabled
191
+ }
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ module "gke" {
56
56
enable_private_endpoint = true
57
57
enable_private_nodes = true
58
58
master_ipv4_cidr_block = "10.0.0.0/28"
59
+ dns_cache = false
59
60
60
61
node_pools = [
61
62
{
@@ -249,6 +250,7 @@ Then perform the following commands on the root folder:
249
250
| ------| -------------|
250
251
| ca\_ certificate | Cluster ca certificate (base64 encoded) |
251
252
| cluster\_ id | Cluster ID |
253
+ | dns\_ cache\_ enabled | Whether DNS Cache enabled |
252
254
| endpoint | Cluster endpoint |
253
255
| gateway\_ api\_ channel | The gateway api channel of this cluster. |
254
256
| horizontal\_ pod\_ autoscaling\_ enabled | Whether horizontal pod autoscaling enabled |
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ locals {
169
169
}] : []
170
170
171
171
172
+ cluster_dns_cache_enabled = var. dns_cache
172
173
cluster_maintenance_window_is_recurring = var. maintenance_recurrence != " " && var. maintenance_end_time != " " ? [1 ] : []
173
174
cluster_maintenance_window_is_daily = length (local. cluster_maintenance_window_is_recurring ) > 0 ? [] : [1 ]
174
175
}
Original file line number Diff line number Diff line change @@ -184,3 +184,8 @@ output "peering_name" {
184
184
description = " The name of the peering between this cluster and the Google owned VPC."
185
185
value = local. cluster_peering_name
186
186
}
187
+
188
+ output "dns_cache_enabled" {
189
+ description = " Whether DNS Cache enabled"
190
+ value = local. cluster_dns_cache_enabled
191
+ }
Original file line number Diff line number Diff line change @@ -174,3 +174,8 @@ output "mesh_certificates_config" {
174
174
]
175
175
}
176
176
177
+
178
+ output "dns_cache_enabled" {
179
+ description = " Whether DNS Cache enabled"
180
+ value = local. cluster_dns_cache_enabled
181
+ }
You can’t perform that action at this time.
0 commit comments