Skip to content

support name_prefix for node pool creation #1377

@dodwmd

Description

@dodwmd

TL;DR

Currently the module requires 'name' to be specified but container_node_pool supports an alternative via name_prefix to allow for node pool's to be created with a prefix and a randomly generated suffix. The purpose is to allow for the alteration of node pool's while allowing workloads to migrate before the old node pool's are destroyed. Can the module be updated to support this functionality. Currently we manage this by multi-stage changes where new node pools are created, workloads migrated, then the old node pool is removed from terraform. This creates a higher burden on change than is necessary when managing a large amount of clusters.

Terraform Resources

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_node_pool#name_prefix

variables_defaults.tf line 27, in locals:
│   27:       [for node_pool in var.node_pools : node_pool["name"]],
main.tf line 48, in locals:
│   48:   node_pool_names = [for np in toset(var.node_pools) : np.name]
variables_defaults.tf line 47, in locals:
│   47:       [for node_pool in var.node_pools : node_pool["name"]],
variables_defaults.tf line 57, in locals:
│   57:       [for node_pool in var.node_pools : node_pool["name"]],
variables_defaults.tf line 67, in locals:
│   67:       [for node_pool in var.node_pools : node_pool["name"]],

Detailed design

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriagedScoped and ready for work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions