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

Can not delete projects resources #7

Closed
displague opened this issue Nov 21, 2021 · 4 comments
Closed

Can not delete projects resources #7

displague opened this issue Nov 21, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@displague
Copy link
Collaborator

displague commented Nov 21, 2021

What happened?

Can not delete projects resources:

  Warning  CannotObserveExternalResource  82s (x463 over 26m)  managed/project.equinixmetal.jet.crossplane.io/v1alpha1, kind=project  cannot run refresh: refresh failed: invalid value for payment_method_id (must be a valid UUID): : File name: main.tf.json

How can we reproduce it?

Create the resources from examples/ and then try to delete it. Describe the resource.

What environment did it happen in?

Crossplane version:
provider-tf-equinix-metal 0.2.2

@displague displague added the bug Something isn't working label Nov 21, 2021
@displague
Copy link
Collaborator Author

Created a related issue on the Terraform project: equinix/terraform-provider-metal#201

@displague displague changed the title Can not delete projects resources: Can not delete projects resources Nov 21, 2021
@muvaf
Copy link
Member

muvaf commented Nov 22, 2021

Thanks for reporting @displague ! Does it work when you do provide a payment_method_id?

@muvaf
Copy link
Member

muvaf commented Nov 22, 2021

FWIW, you can do schema manipulations specific to resources. For example, if you think that this field should be mandatory (at least till the fix in TF provider is in), you can make it so like here how we add a region field to all AWS resources except IAM: https://github.com/crossplane-contrib/provider-jet-aws/blob/main/config/overrides.go#L73

@displague
Copy link
Collaborator Author

Closing as won't fix, but this should be resolved in the replacement project.
See #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants