terraform-google-kubernetes-engine icon indicating copy to clipboard operation
terraform-google-kubernetes-engine copied to clipboard

Variable node_pools should allow setting empty list [] as a value.

Open claudio-vellage opened this issue 8 months ago • 0 comments

TL;DR

Currently it's not possible to set node_pools = [], becaues the module tries to perform lookups based on node_pools[0], but if the list is empty, that value doesn't exist.

This is relevant for clusters that should only be provisioned by node auto-provisioning

Expected behavior

It should be possible to create a cluster without any nodepools by setting node_pools = [].

Observed behavior

There are errors because in cluster.tf there are lookups performed based on var.node_pools[0]

Terraform Configuration

N/A

Terraform Version

N/A

Terraform Provider Versions

N/A

Additional information

No response

claudio-vellage avatar Mar 08 '25 23:03 claudio-vellage