Skip to content

Label force replace when name is edited #452

Closed
@Nabatsar

Description

Describe the bug
Hello, if i try to edit a label ( the name or the color of this one ) the label is force replaced and as so change of ID in harbor

To Reproduce
Change the name of the ressurce

Expected behavior
I can't see why the name can be just replace

Additional context

# module.app_deployer["app_7"].harbor_label.template[0] must be replaced
-/+ resource "harbor_label" "template" {
      ~ id    = "/labels/431" -> (known after apply)
      ~ name  = "POC-FR-EXO-TEST-MAILLERIE-FULL-WORKING8" -> "POC-FR-EXO-TEST-MAILLERIE-FULL-WORKING89" # forces replacement
      ~ scope = "g" -> (known after apply)
        # (1 unchanged attribute hidden)
    }
  • Provider Version : harbor v3.10.12
  • Terraform v1.6.5
  • Harbor Version : dunno

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions