terraform-provider-harbor
terraform-provider-harbor copied to clipboard
harbor_project_member_group resources not deleted
Hello there, hope you could help me with this - or if we can manage to work on it together
Describe the bug
Given an OIDC (Keycloak) group name + permission and its linked project, the harbor_project
and the subsequential harbor_project_member_group
resources are correctly created, but after executing a terraform destroy
the groups are still on the Harbor. This happens with any group/project name and any group role.
To Reproduce
terraform apply
and then terraform destroy
on:
terraform {
required_providers {
harbor = {
source = "goharbor/harbor"
}
}
}
provider "harbor" {
url = var.server_harbor_url
username = var.server_harbor_username
password = var.server_harbor_password
insecure = var.server_harbor_insecure_connection
}
resource "harbor_project" "my_project" {
name = "test_project"
}
resource "harbor_project_member_group" "my_project_group" {
project_id = harbor_project.my_project.id
group_name = "test_group"
role = "guest"
type = "oidc"
}
Expected behavior
After executing terraform destroy
both resources should be deleted.
The project is correctly deleted, the group isn't.
Additional context
- Provider Version v3.10.12 (atm latest)
- Terraform Version v1.7.5 and v.1.9.0 (atm latest)
- Harbor Version v2.10.0-6abb4eab