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

Management of missing resources #125

Merged
merged 1 commit into from
May 27, 2021
Merged

Management of missing resources #125

merged 1 commit into from
May 27, 2021

Conversation

mxmorin
Copy link
Contributor

@mxmorin mxmorin commented May 26, 2021

Fix #124

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@mxmorin mxmorin changed the title Mangement of missing ressources Management of missing resources May 26, 2021
@wrighbr wrighbr merged commit 34bf1cf into goharbor:master May 27, 2021
sydorovdmytro added a commit to sydorovdmytro/terraform-provider-harbor that referenced this pull request Jun 21, 2021
Fixes an issue when the registry can not be recreated if it was deleted outside of the Terraform code.
To reproduce an issue you need to create a repgistry as it's described in the documentation https://registry.terraform.io/providers/BESTSELLER/harbor/latest/docs/resources/registry
After the creation go to the Harbor web interface, delete the registry, and try to execute terraform plan or terraform apply again.
It will fail with the error: Error: Resource not found

The same fix was applied in PRs goharbor#125 and goharbor#127
sydorovdmytro added a commit to sydorovdmytro/terraform-provider-harbor that referenced this pull request Jun 21, 2021
Fixes an issue when the registry can not be recreated if it was deleted outside of the Terraform code.
To reproduce an issue you need to create a registry as it's described in the documentation https://registry.terraform.io/providers/BESTSELLER/harbor/latest/docs/resources/registry
After the creation go to the Harbor web interface, delete the registry, and try to execute terraform plan or terraform apply again.
It will fail with the error: Error: Resource not found

The same fix was applied in PRs goharbor#125 and goharbor#127
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

Successfully merging this pull request may close these issues.

Missing resources must be recreated
2 participants