Skip to content

advanced_machine_features and queued_provisioning forces replacement of node pool created through UI #2304

@AlDemion

Description

@AlDemion

TL;DR

Seems like values that are set during the creation of node pool through UI are incompatible with existing module defaults which leads to node pool recreation, and there is no way to specify desired values in the module inputs.

Expected behavior

Successful import of the resource without recreation

Observed behavior

- advanced_machine_features { # forces replacement
    - enable_nested_virtualization = false -> null
    - threads_per_core             = 0 -> null
  }
- queued_provisioning { # forces replacement
    - enabled = false -> null
  }

Terraform Configuration

node_pools = [
    {
      name               = "nodepool"
      auto_repair        = true
      auto_upgrade       = false
      initial_node_count = 1
      min_count          = 1
      max_count          = 44
      max_surge          = 6
      machine_type       = "e2-custom-24-98304"
      version            = "1.30.5-gke.1713000"
      preemptible        = false
      enable_nested_virtualization = false
      threads_per_core = 0
    },
]

Terraform Version

1.11.1

Terraform Provider Versions

google = {
      source  = "hashicorp/google"
      version = ">= 6.14.0, < 7"
    }
    google-beta = {
      source  = "hashicorp/google-beta"
      version = ">= 6.14.0, < 7"
    }
    kubernetes = {
      source  = "hashicorp/kubernetes"
      version = "~> 2.10"
    }
    random = {
      source  = "hashicorp/random"
      version = ">= 2.1"
    }

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