Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label force replace when name is edited #452

Closed
Nabatsar opened this issue Jul 10, 2024 · 1 comment
Closed

Label force replace when name is edited #452

Nabatsar opened this issue Jul 10, 2024 · 1 comment

Comments

@Nabatsar
Copy link

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
flbla added a commit that referenced this issue Jul 11, 2024
@flbla flbla mentioned this issue Jul 11, 2024
flbla added a commit that referenced this issue Jul 11, 2024
Signed-off-by: flbla <[email protected]>
@flbla
Copy link
Contributor

flbla commented Jul 11, 2024

hi @Nabatsar ,
Thank you for the bug report
This will be fixed in the next version

flbla added a commit that referenced this issue Jul 11, 2024
fixes #453 #452

Signed-off-by: flbla <[email protected]>
@flbla flbla closed this as completed Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants