Skip to content

Commit 45ce0e9

Browse files
committed
revert network_config
1 parent 09e5aa5 commit 45ce0e9

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
@@ -586,12 +586,14 @@ resource "google_container_node_pool" "pools" {
586586
}
587587
}
588588

589+
{% if beta_cluster %}
589590
dynamic "network_config" {
590591
for_each = length(lookup(each.value, "pod_range", "")) > 0 ? [each.value] : []
591592
content {
592593
pod_range = lookup(network_config.value, "pod_range", null)
593594
}
594595
}
596+
{% endif %}
595597

596598
management {
597599
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
@@ -399,12 +399,6 @@ resource "google_container_node_pool" "pools" {
399399
}
400400
}
401401

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

409403
management {
410404
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)