You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a project has been created by Terraform with a custom tag immutability rules, retention polices and after the project is removed via webUI manually, the provider crashed with the error that immutable tag rule cannot be found, instead of adding the rule alongside with the project.
To Reproduce
Deploy harbor project, retention policy and immutable tag rule
Now delete harbor project from webUi manually, on the next run the error occurs
│ Error: [ERROR] unexpected status code got: 500 expected: 200
│ {"errors":[{"code":"UNKNOWN","message":"internal server error"}]}
│
│
│ with harbor_retention_policy.retention_policy["development"],
│ on main.tf line 136, in resource "harbor_retention_policy" "retention_policy":
│ 136: resource "harbor_retention_policy" "retention_policy" {
│ Error: Resource not found /projects/21/immutabletagrules/5
│
│ with harbor_immutable_tag_rule.immutable_tag_rule["development"],
│ on main.tf line 163, in resource "harbor_immutable_tag_rule" "immutable_tag_rule":
│ 163: resource "harbor_immutable_tag_rule" "immutable_tag_rule" {
Expected behavior
The provider should catch the error and re-create a project with corresponding immutable tag rule and retention policy
Additional context
Provider Version 3.10.15
Terraform Version 1.9.8
Harbor Version (harbor-core:v2.11.1, )
The text was updated successfully, but these errors were encountered:
Describe the bug
When a project has been created by Terraform with a custom tag immutability rules, retention polices and after the project is removed via webUI manually, the provider crashed with the error that immutable tag rule cannot be found, instead of adding the rule alongside with the project.
To Reproduce
Deploy harbor project, retention policy and immutable tag rule
Now delete harbor project from webUi manually, on the next run the error occurs
Expected behavior
The provider should catch the error and re-create a project with corresponding immutable tag rule and retention policy
Additional context
The text was updated successfully, but these errors were encountered: