Skip to content

dynamic block "node_pool_auto_config" in cluster.tf missing "resource_manager_tags" field #2330

@ouarfhit

Description

@ouarfhit

Hi,

i build a standard GKE private cluster in a shared VPC in which the netsec team implements secure tags for firewall policies.

I would like to tag my worker nodes with the key/value provided at the node pool level.

It works fine for all nodes being part of nodes pools defined through the "node_pools" variable, by setting the "node_pools_resource_manager_tags" parameter.

But as soon as a node pool is provisioned through the auto-provisioning option by a user request for example, the secure tag is not set on the node. In the "private-cluster" submodule, in cluster.tf, i see only the "network_tags" field of the native terraform resource implemented, not the "resource_manager_tags" in the "node_pool_auto_config" dynamic block:

dynamic "node_pool_auto_config" { for_each = var.cluster_autoscaling.enabled && (length(var.network_tags) > 0 || var.add_cluster_firewall_rules) ? [1] : [] content { network_tags { tags = var.add_cluster_firewall_rules ? (concat(var.network_tags, [local.cluster_network_tag])) : var.network_tags } } }

Am i missing something? How could i set secure tags on auto provisioned node pools ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions