-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add deletion of stack after destroy (downsert/remove) #759
Conversation
Hi again @Moon1706 . Good to hear from you! I'm in favor of adding a However, given that we already have |
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.
Before merging the PR, I'd love it if we could add two tests:
- Demonstrate that
stack.removeWorkspace
is called whendownsert: true
. - Demonstrate that
stack.removeWorkspace
isn't called whendownsert
is not provided.
Lastly, it would be great if we could log a warning if the user has downsert: true
but command
is set to anything other than destroy
.
Ah, TIL we recently added support for |
Yeah, I've checked the discussion. Mmm, I'm not sure. This option doesn't exist in @pulumi/pulumi/automation. |
@Moon1706 You can still keep the code / logic the same, but could you rename the input? I.e. change |
Sure) I'm just in UTC+4 time zone, and gonna apply this suggestion tomorrow. |
@RobbieMcKinstry |
Hey @Moon1706 sorry for the slow reply, once again. I think we should move forward with this PR with or without the related PR to automation API. We can always switch to the AutoAPI implementation later once it lands, but there's no need to wait for that. The only blocker is to rename |
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.
Here's a changeset that renames downsert
to remove
.
@Moon1706 If these changes look good, I'll commit them and merge this PR. |
@RobbieMcKinstry |
But yeah, changes LGTM. Will we wait for applying changes to the main Pulumi repo? |
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.
LGTM! I think status checks are failing because there's no changelog entry. That's the last step! (Sorry, I should have mentioned that before...)
No, I think this is good to go! :) Could you add a changelog entry? |
@RobbieMcKinstry Aahah) My bad) I thought you were talking about the main changelogs of the Pulumi repository. Okay, give me 5 minutes, I'll add it. |
Thanks for another contribution Moon! :) |
Hi folks! We've already discussed this feature previously, but I just didn't have time to continue. So, here I am. As I can see, action wasn't super reorganized and appending delete stack flag is relevant. Thus, what do you think about the new field?