Skip to content

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

@claudio-vellage

Description

@claudio-vellage

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions