Skip to content

Commit

Permalink
fix node_pools for GKE standar
Browse files Browse the repository at this point in the history
  • Loading branch information
lzianekhodja-aneo committed Oct 26, 2023
1 parent 5353ce6 commit dab9e2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubernetes/gcp/gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ locals {
display_name = "CLUSTER-VPC"
}
] : []))
node_pools = var.autopilot ? null : [
node_pools = var.autopilot ? null : (var.node_pools == null ? null : [
for node_pool in var.node_pools : merge(node_pool, {
name = "${var.name}-${node_pool["name"]}"
})
]
])
# NOTE: Dataplane-V2 conflicts with the Calico network policy add-on because
# it provides redundant NetworkPolicy capabilities. If V2 is enabled, the
# Calico add-on should be disabled.
Expand Down

0 comments on commit dab9e2d

Please sign in to comment.