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

Deleting the Terraform object before deleting its source #1001

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

chanwit
Copy link
Collaborator

@chanwit chanwit commented Sep 19, 2023

Fixes #898

This PR contains two commits.

  1. The first commit fixed the Terraform deletion logic
    of the Branch Planner by making sure that the
    Terraform object is deleted before the source.

It also changed the plan object creation logic by
making sure that

  • the plan object won't delete the live resources.
  • the plan object won't create any output secrets.
  1. There was a bug inside the createLabels function
    that modified the labels of the original objects
    instead of creating a new map. The second commit fixed it.

Copy link
Collaborator

@yitsushi yitsushi left a comment

Choose a reason for hiding this comment

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

:shipit:

This commit fixed the Terraform deletion logic
of the Branch Planner by making sure that the
Terraform object is deleted before the source.

It also changed the plan object creation logic by
making sure that
- the plan object won't delete the live resources.
- the plan object won't create any output secrets.

Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
There was a bug inside the createLabels function
that modified the labels of the original objects
instead of creating a new map. This commit fixed it.

Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
@chanwit chanwit force-pushed the delete-tf-before-source branch from d4d9354 to 41c4445 Compare September 19, 2023 08:22
@chanwit chanwit merged commit ca4543b into main Sep 19, 2023
15 checks passed
@bigkevmcd bigkevmcd deleted the delete-tf-before-source branch December 12, 2023 17:59
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.

Branch Planner's source being deleted before the planning object
2 participants