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

Implement Terraform Workspace deletion. #794

Merged

Conversation

dduportal
Copy link
Contributor

Hello there 👋 Thanks for this awesoe tool.

This PR fixes #583 : it implements 2 methods to handle Terraform Workspace's deletion.

Please note that deleting the workspace default is not supported as it triggers edgy use cases.

@dduportal dduportal changed the title Implement Terraform Workspace deletion. Fixes #583. Implement Terraform Workspace deletion. Feb 24, 2021
Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

modules/terraform/workspace.go Outdated Show resolved Hide resolved
modules/terraform/workspace.go Outdated Show resolved Hide resolved
modules/terraform/workspace.go Outdated Show resolved Hide resolved
modules/terraform/workspace.go Outdated Show resolved Hide resolved
modules/terraform/workspace.go Outdated Show resolved Hide resolved
modules/terraform/workspace_test.go Outdated Show resolved Hide resolved
modules/terraform/workspace_test.go Show resolved Hide resolved
modules/terraform/workspace_test.go Outdated Show resolved Hide resolved
modules/terraform/workspace_test.go Outdated Show resolved Hide resolved
modules/terraform/workspace_test.go Outdated Show resolved Hide resolved
@dduportal dduportal force-pushed the feat/terraform_workspace_delete branch from 4b0b8b8 to c00c498 Compare March 10, 2021 19:32
@dduportal
Copy link
Contributor Author

Hello @brikis98 , thanks a lot for the review.

I've updated the PR with a bunch of your feedbacks, but I need inputs on some.

Please note that I haven't squashed the commits yet, in order to allow further update or rollback as necessary.

Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

Almost there!

modules/terraform/workspace_test.go Outdated Show resolved Hide resolved
modules/terraform/workspace_test.go Outdated Show resolved Hide resolved
modules/terraform/workspace_test.go Outdated Show resolved Hide resolved
@dduportal dduportal force-pushed the feat/terraform_workspace_delete branch from 5672783 to c684c68 Compare March 22, 2021 14:25
@dduportal dduportal requested a review from brikis98 March 22, 2021 14:25
Signed-off-by: Damien Duportal <[email protected]>
Signed-off-by: Damien Duportal <[email protected]>
@dduportal
Copy link
Contributor Author

Ok, I've checked all your feedbacks, it should be ok (also rebased from upstream). Let me know if I missed something else.
Thanks for all the feedbacks and the review!

Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

Great, thank you! Code LGTM now. I'll kick off tests.

@brikis98
Copy link
Member

Tests passed! Merging now.

@brikis98 brikis98 merged commit 13e7990 into gruntwork-io:master Mar 24, 2021
@brikis98
Copy link
Member

@dduportal dduportal deleted the feat/terraform_workspace_delete branch March 24, 2021 12:01
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.

Function for deleting workspace
2 participants