Skip to content

[Bug]: Adding nodes to LKE pool does not update pool state #1952

@gpietrus-akamai

Description

@gpietrus-akamai

Terraform Version

Terraform v1.7.5 on darwin_arm64

Linode Provider Version

v3.0.0

Effected Terraform Resources

linode_lke_cluster

Terraform Config Files

Step 1

resource "linode_lke_cluster" "my-cluster" {
  label       = "test-cluster"
  k8s_version = "1.33"
  region      = "us-lax"
  tags = []

  pool {
    type  = "g6-standard-2"
    count = 3
  }
}

Step 2

resource "linode_lke_cluster" "my-cluster" {
  label       = "test-cluster"
  k8s_version = "1.33"
  region      = "us-lax"
  tags = []

  pool {
    type  = "g6-standard-2"
    count = 5
  }
}

output "fifth_node" {
  value = linode_lke_cluster.my-cluster.pool[0].nodes[4].id
}

Debug Output

No response

Panic Output

No response

Expected Behavior

Terraform plan on step 2 should include a change to the pool (new nodes marked as known after apply) on linode_lke_cluster.my-cluster.pool[0].nodes. In result the fifth_node output variable should return a valid value.

Actual Behavior

Terraform plan does not report any change on linode_lke_cluster.my-cluster.pool[0].nodes. Only count is updated in place. Terraform fails to apply the change.

Image

Image

Steps to Reproduce

Apply step1, then step2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissues that report a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions