Skip to content

Commit 6c9a0b4

Browse files
committed
fix: no pod_ranges for autopilot clusters
1 parent 6868fd3 commit 6c9a0b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autogen/main/main.tf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ locals {
8686

8787
cluster_subnet_cidr = var.add_cluster_firewall_rules ? data.google_compute_subnetwork.gke_subnetwork[0].ip_cidr_range : null
8888
cluster_alias_ranges_cidr = var.add_cluster_firewall_rules ? { for range in toset(data.google_compute_subnetwork.gke_subnetwork[0].secondary_ip_range) : range.range_name => range.ip_cidr_range } : {}
89+
{% if autopilot_cluster != true %}
8990
pod_all_ip_ranges = var.add_cluster_firewall_rules ? compact(concat([local.cluster_alias_ranges_cidr[var.ip_range_pods]], [for k, v in merge(local.node_pools, local.windows_node_pools): local.cluster_alias_ranges_cidr[v.pod_range] if length(lookup(v, "pod_range", "")) > 0] )) : []
9091

91-
{% if autopilot_cluster != true %}
9292
cluster_network_policy = var.network_policy ? [{
9393
enabled = true
9494
provider = var.network_policy_provider

0 commit comments

Comments
 (0)