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
An error is thrown and the registry not configured in Harbor.
Expected behavior
The registry to be added.
Additional context
I believe the error is due to the fact tat for a "docker-hub" type the "endpoint_url" shouldn't be set. However this is required by the terraform provider.
A workaround is to configure it manually in the webui and then import the existing resource. The provider doesn't detect any changes that need to be reconciled in this case.
Provider Version: 3.10.9
Terraform Version: >= 1.6.0
Harbor Version: 2.10.2
The text was updated successfully, but these errors were encountered:
Terraform will perform the following actions:
# harbor_registry.dockerhub will be created
+ resource "harbor_registry" "dockerhub" {
+ endpoint_url = "https://hub.docker.com"
+ id = (known after apply)
+ insecure = false
+ name = "test_docker_harbor"
+ provider_name = "docker-hub"
+ registry_id = (known after apply)
+ status = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
harbor_registry.dockerhub: Creating...
harbor_registry.dockerhub: Creation complete after 1s [id=/registries/3]
Describe the bug
When adding a "docker-hub" registry an error is thrown.
To Reproduce
Expected behavior
The registry to be added.
Additional context
I believe the error is due to the fact tat for a "docker-hub" type the "endpoint_url" shouldn't be set. However this is required by the terraform provider.
A workaround is to configure it manually in the webui and then import the existing resource. The provider doesn't detect any changes that need to be reconciled in this case.
The text was updated successfully, but these errors were encountered: