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

Flag to automatically clean up #25

Open
braunsonm opened this issue Dec 18, 2020 · 4 comments
Open

Flag to automatically clean up #25

braunsonm opened this issue Dec 18, 2020 · 4 comments
Labels
carvel-accepted This issue should be considered for future work and that the triage process has been completed enhancement This issue is a feature request

Comments

@braunsonm
Copy link

Describe the problem/challenge you have
It would be nice to have a flag like --rm which you can pass to start to automatically clean up when you Cntrl+C.

Describe the solution you'd like
A --rm (or similar) flag for start to cleanup the secrets and pod when kwt is interrupted

@braunsonm braunsonm added carvel-triage This issue has not yet been reviewed for validity enhancement This issue is a feature request labels Dec 18, 2020
@StevenLocke
Copy link

Thanks for the suggestion!
To be clear, are you referring to kwt net start when you say the start command?

Can you share some more about what you'd like cleaned up? What's being left behind that you need to manually remove or is causing issues?
For my own benefit, what workflow are you following which lead to this desired feature?

@braunsonm
Copy link
Author

Hi Steven,
Yes I mean kwt net start

For instance when I'm trying to debug something and jump into a namespace with sudo -E kwt net start -n namespace it creates a kwt pod in that namespace to tunnel my traffic through. When I'm done I Ctrl+C to stop the network but the pod is left behind. It would be nice if there was a way to have the pod cleaned up after I disconnect rather than manually running the cleanup command after.
More so just a quality of life feature :)

@StevenLocke
Copy link

I think I get it!

You're interested in a flag that could be passed to kwt net start which would perform the functionality of kwt net clean-up after terminating the command. Is that correct?

@braunsonm
Copy link
Author

Exactly!

@StevenLocke StevenLocke added carvel-accepted This issue should be considered for future work and that the triage process has been completed and removed carvel-triage This issue has not yet been reviewed for validity labels Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
carvel-accepted This issue should be considered for future work and that the triage process has been completed enhancement This issue is a feature request
Projects
None yet
Development

No branches or pull requests

2 participants