-
Notifications
You must be signed in to change notification settings - Fork 911
feat: Add destroy to workspace provision job #373
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
Conversation
This was detecting branches, but not our "main" branch before. Hopefully this fixes it!
This enables a consistent API for project import and provisioned resources.
This is a much cleaner abstraction. Explicitly declaring the user parameters for each provisioner makes for significantly simpler testing.
Terraform (or other provisioners) may need to cleanup state, or cancel actions before exit. This adds the ability to gracefully exit provisionerd.
This enables the full flow of create/update/delete.
Codecov Report
@@ Coverage Diff @@
## main #373 +/- ##
==========================================
+ Coverage 67.24% 67.70% +0.46%
==========================================
Files 148 150 +2
Lines 8271 8454 +183
Branches 72 72
==========================================
+ Hits 5562 5724 +162
- Misses 2132 2150 +18
- Partials 577 580 +3
Continue to review full report at Codecov.
|
if transition == proto.WorkspaceTransition_DESTROY { | ||
args = append(args, "-destroy") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know this flag was available - I thought it needed terraform destroy
- TIL. This flag is certainly cleaner 👍
This enables the full flow of create/update/delete.