vultr / terraform-provider-vultr

Terraform Vultr provider
https://www.terraform.io/docs/providers/vultr/
Mozilla Public License 2.0
193 stars 65 forks source link

[BUG] - kubernetes cluster label is gone after updating its node pool #234

Closed fhisamoto closed 2 years ago

fhisamoto commented 2 years ago

Given the k8s resource

resource "vultr_kubernetes" "k8" {
  region  = var.region
  label   = "vke-staging"
  version = "v1.23.5+2"

  node_pools {
    node_quantity = 1
    plan          = "vc2-1c-2gb"
    label         = "np-3"
  }
}

When I update, for example, the node quantity to 2, and run terraform apply, causes the k8s label to be gone. This can be seen in the web ui.

image

Or when using data like the example bellow

data "vultr_kubernetes" "cluster" {
  filter {
    name   = "label"
    values = ["vke-staging"]
  }
}

raises the error

│ Error: no results were found
│ 
│   with module.k8s.data.vultr_kubernetes.cluster,
│   on ../../modules/k8s/main.tf line 28, in data "vultr_kubernetes" "cluster":
│   28: data "vultr_kubernetes" "cluster" {
ddymko commented 2 years ago

@fhisamoto Thanks for creating the ticket - We'll get this patched for the next release

ddymko commented 2 years ago

released in https://github.com/vultr/terraform-provider-vultr/releases/tag/v2.11.0