Skip to content

Commit c5a2fc1

Browse files
committed
revert network_config
1 parent 60e9360 commit c5a2fc1

File tree

8 files changed

+4
-21
lines changed

8 files changed

+4
-21
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ The node_pools variable takes the following parameters:
256256
| max_unavailable | The number of nodes that can be simultaneously unavailable during an upgrade. Increasing max_unavailable raises the number of nodes that can be upgraded in parallel. Can be set to 0 or greater. | 0 | Optional |
257257
| min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count. Should be used when autoscaling is true | 1 | Optional |
258258
| name | The name of the node pool | | Required |
259-
| pod_range | The ID of the secondary range for pod IPs. | | Optional |
260259
| node_count | The number of nodes in the nodepool when autoscaling is false. Otherwise defaults to 1. Only valid for non-autoscaling clusers | | Required |
261260
| node_locations | The list of zones in which the cluster's nodes are located. Nodes must be in the region of their regional cluster or in the same region as their cluster's zone for zonal clusters. Defaults to cluster level node locations if nothing is specified | " " | Optional |
262261
| node_metadata | Options to expose the node metadata to the workload running on the node | | Optional |

autogen/main/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ The node_pools variable takes the following parameters:
216216
| max_unavailable | The number of nodes that can be simultaneously unavailable during an upgrade. Increasing max_unavailable raises the number of nodes that can be upgraded in parallel. Can be set to 0 or greater. | 0 | Optional |
217217
| min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count. Should be used when autoscaling is true | 1 | Optional |
218218
| name | The name of the node pool | | Required |
219+
{% if beta_cluster %}
219220
| pod_range | The ID of the secondary range for pod IPs. | | Optional |
221+
{% endif %}
220222
| node_count | The number of nodes in the nodepool when autoscaling is false. Otherwise defaults to 1. Only valid for non-autoscaling clusers | | Required |
221223
| node_locations | The list of zones in which the cluster's nodes are located. Nodes must be in the region of their regional cluster or in the same region as their cluster's zone for zonal clusters. Defaults to cluster level node locations if nothing is specified | " " | Optional |
222224
| node_metadata | Options to expose the node metadata to the workload running on the node | | Optional |

autogen/main/cluster.tf.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,14 @@ resource "google_container_node_pool" "pools" {
588588
}
589589
}
590590

591+
{% if beta_cluster %}
591592
dynamic "network_config" {
592593
for_each = length(lookup(each.value, "pod_range", "")) > 0 ? [each.value] : []
593594
content {
594595
pod_range = lookup(network_config.value, "pod_range", null)
595596
}
596597
}
598+
{% endif %}
597599

598600
management {
599601
auto_repair = lookup(each.value, "auto_repair", true)

cluster.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,6 @@ resource "google_container_node_pool" "pools" {
297297
}
298298
}
299299

300-
dynamic "network_config" {
301-
for_each = length(lookup(each.value, "pod_range", "")) > 0 ? [each.value] : []
302-
content {
303-
pod_range = lookup(network_config.value, "pod_range", null)
304-
}
305-
}
306300

307301
management {
308302
auto_repair = lookup(each.value, "auto_repair", true)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ The node_pools variable takes the following parameters:
290290
| max_unavailable | The number of nodes that can be simultaneously unavailable during an upgrade. Increasing max_unavailable raises the number of nodes that can be upgraded in parallel. Can be set to 0 or greater. | 0 | Optional |
291291
| min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count. Should be used when autoscaling is true | 1 | Optional |
292292
| name | The name of the node pool | | Required |
293-
| pod_range | The ID of the secondary range for pod IPs. | | Optional |
294293
| node_count | The number of nodes in the nodepool when autoscaling is false. Otherwise defaults to 1. Only valid for non-autoscaling clusers | | Required |
295294
| node_locations | The list of zones in which the cluster's nodes are located. Nodes must be in the region of their regional cluster or in the same region as their cluster's zone for zonal clusters. Defaults to cluster level node locations if nothing is specified | " " | Optional |
296295
| node_metadata | Options to expose the node metadata to the workload running on the node | | Optional |

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,6 @@ resource "google_container_node_pool" "pools" {
401401
}
402402
}
403403

404-
dynamic "network_config" {
405-
for_each = length(lookup(each.value, "pod_range", "")) > 0 ? [each.value] : []
406-
content {
407-
pod_range = lookup(network_config.value, "pod_range", null)
408-
}
409-
}
410404

411405
management {
412406
auto_repair = lookup(each.value, "auto_repair", true)

modules/private-cluster/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ The node_pools variable takes the following parameters:
268268
| max_unavailable | The number of nodes that can be simultaneously unavailable during an upgrade. Increasing max_unavailable raises the number of nodes that can be upgraded in parallel. Can be set to 0 or greater. | 0 | Optional |
269269
| min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count. Should be used when autoscaling is true | 1 | Optional |
270270
| name | The name of the node pool | | Required |
271-
| pod_range | The ID of the secondary range for pod IPs. | | Optional |
272271
| node_count | The number of nodes in the nodepool when autoscaling is false. Otherwise defaults to 1. Only valid for non-autoscaling clusers | | Required |
273272
| node_locations | The list of zones in which the cluster's nodes are located. Nodes must be in the region of their regional cluster or in the same region as their cluster's zone for zonal clusters. Defaults to cluster level node locations if nothing is specified | " " | Optional |
274273
| node_metadata | Options to expose the node metadata to the workload running on the node | | Optional |

modules/private-cluster/cluster.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,6 @@ resource "google_container_node_pool" "pools" {
310310
}
311311
}
312312

313-
dynamic "network_config" {
314-
for_each = length(lookup(each.value, "pod_range", "")) > 0 ? [each.value] : []
315-
content {
316-
pod_range = lookup(network_config.value, "pod_range", null)
317-
}
318-
}
319313

320314
management {
321315
auto_repair = lookup(each.value, "auto_repair", true)

0 commit comments

Comments
 (0)