Skip to content

Flapping network_tags for beta-autopilot-private-cluster #2296

@nikolaik

Description

@nikolaik

TL;DR

When passing insecure_kubelet_readonly_port_enabled to beta-autopilot-private-cluster, network_tags is flapping like this

 # module.my_cluster.module.gke.google_container_cluster.primary will be updated in-place
! resource "google_container_cluster" "primary" {
        id                                       = "projects/my-project/locations/europe-west1/clusters/my-cluster"
        name                                     = "my-cluster"
        # (35 unchanged attributes hidden)

!       node_pool_auto_config {
            # (1 unchanged attribute hidden)

+           network_tags {}

            # (1 unchanged block hidden)
        }

        # (38 unchanged blocks hidden)
    }

Should the default value here be {}?

Or do we need make network_tags dynamic too?

Expected behavior

No flapping

Observed behavior

No response

Terraform Configuration

module "gke" {
  source  = "terraform-google-modules/kubernetes-engine/google//modules/beta-autopilot-private-cluster"
  version = "36.0.0"
  
  # <snipped variables>
  insecure_kubelet_readonly_port_enabled = false
}

Terraform Version

1.10.5

Terraform Provider Versions

.
├── provider[registry.terraform.io/hashicorp/google] >= 6.0.0
└── module.gke
    ├── provider[registry.terraform.io/hashicorp/kubernetes] ~> 2.10
    ├── provider[registry.terraform.io/hashicorp/random] >= 2.1.0
    ├── provider[registry.terraform.io/hashicorp/google] >= 6.14.0, < 7.0.0
    └── provider[registry.terraform.io/hashicorp/google-beta] >= 6.14.0, < 7.0.0

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagedScoped and ready for work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions