Resource gitlab_group_label missing UpgradeState() method

Resource gitlab_group_label missing UpgradeState() method

Bug Report

Dear Developers,

We tried to upgrade GitLab provider from 17.3.1 to 17.9.0 and we faced this issue while planning change (on existing resources):


│ Error: Unable to Upgrade Resource State

│   with gitlab_group_label.labels["Wiki"],
│   on labels.tf line 1, in resource "gitlab_group_label" "labels":
│    1: resource "gitlab_group_label" "labels" {

│ This resource was implemented without an UpgradeState() method, however
│ Terraform was expecting an implementation for version 1 upgrade.

│ This is always an issue with the Terraform Provider and should be reported
│ to the provider developer.

Please would you like to implement the missing UpgradeState method for the gitlab_group_label resource.

Thank you.

Relevant Terraform Configuration

resource "gitlab_group_label" "labels" {
  for_each = yamldecode(file("${path.module}/labels.yml"))

  group       = data.gitlab_group.some.full_path
  name        = each.value.name
  description = each.value.description
  color       = each.value.color
}

Relevant Terraform Command

terraform plan

Relevant Log Output

See above.

Additional Details

  • GitLab Terraform Provider Version: 17.9.0
  • GitLab Instance Version: not-disclosed
  • Terraform Version: 1.10.2