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

terraform: do not fill the empty tfstate if the resource is being deleted #101

Merged
merged 2 commits into from
Sep 26, 2022
Merged

terraform: do not fill the empty tfstate if the resource is being deleted #101

merged 2 commits into from
Sep 26, 2022

Conversation

muvaf
Copy link
Member

@muvaf muvaf commented Sep 26, 2022

Description of your changes

Details are in #100 but the gist is that we should not fill the tfstate during deletion since that's how TF signals that the destroy operation succeeded.

Fixes #100

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

In my local, with GCP KMS KeyRing.

make uptest-local PROVIDER_NAME=provider-gcp EXAMPLE_LIST=$(find provider-gcp/examples/kms/*.yaml | tr '\n' ',')

All tests have passed in three cloud providers. See status checks of this commit https://github.com/upbound/official-providers/pull/779/commits/aac5fd7a349441d5d361467a4cf8c00961dce3cd

@muvaf
Copy link
Member Author

muvaf commented Sep 26, 2022

All tests have passed in three cloud providers. See status checks of this commit https://github.com/upbound/official-providers/pull/779/commits/aac5fd7a349441d5d361467a4cf8c00961dce3cd

Copy link
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muvaf Thanks for the fix. LGTM!

@muvaf muvaf merged commit 9fcb735 into crossplane:main Sep 26, 2022
@muvaf muvaf deleted the delete-me-pls branch September 26, 2022 18:49
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.

Resources with scheduled deletion are getting stuck during deletion
2 participants