add shortcut to exit and teardown resources from UI/console
Describe the Feature You Want
From Gaëtan Lehmann in k8s slack:
[A]
shutdownbutton is missing in the dashboard (and aDkey in the console) to destroy the resources that tilt is currently aware of. [...] and the more I think about it, the more I think logical to have a way to exit tilt from the UI (web or console) instead of exiting it with a ctrl-c and relaunching it to destroy the commands
[D]uring the experience previously described, I wouldn't have known before launching tilt that I wanted to destroy the resources [...]so a user interface that allows to make the decision once tilt is running would better fit me
Current Behavior
A user can ctrl + c to exit tilt and run tilt down to destroy resources from cli.
Why Do You Want This?
Additional context This could be considered a duplicate / related to #2427.
you might be able to do this with an extension!
you'd need a UIButton (https://github.com/tilt-dev/tilt-extensions/tree/master/uibutton) that runs the command:
tilt delete kubernetesapplys --all
and then kill the tilt process. the only tricky bit would be to wait on tilt to finish the deletion....but maybe for an initial experiment you could just wait 5s?
i think @milas was exploring using finalizers to make this easier to wait on object deletion
We currently work around this limitation using https://marketplace.visualstudio.com/items?itemName=spencerwmiles.vscode-task-buttons in the vscode case