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

Add --cleanup to skaffold run #1008

Closed
cliffburdick opened this issue Sep 21, 2018 · 7 comments
Closed

Add --cleanup to skaffold run #1008

cliffburdick opened this issue Sep 21, 2018 · 7 comments
Assignees
Labels
area/cleanup area/run good first issue Good for newcomers in progress kind/feature-request priority/p3 agreed that this would be good to have, but no one is available at the moment.

Comments

@cliffburdick
Copy link
Contributor

I have a use case where I don't want to redeploy every time there's a source change, but I want the console to be attached after I deploy. As far as I can tell, skaffold run does not attach the console output. skaffold dev does, but it watches for source output. Should I trick skaffold dev into not watching for source changes?

@dgageot
Copy link
Contributor

dgageot commented Sep 21, 2018

@cliffburdick have you tried skaffold run --tail. You should like it :-)

@cliffburdick
Copy link
Contributor Author

@dgageot Thanks! Missed that in the options.

@cliffburdick
Copy link
Contributor Author

@dgageot This isn't quite the same. Ctrl+C on --tail doesn't kill the pod when you're done as far as I can tell.

@cliffburdick cliffburdick reopened this Oct 5, 2018
@dgageot
Copy link
Contributor

dgageot commented Oct 8, 2018

@cliffburdick would you be ok if we add a --cleanup flag to skaffold run?

@cliffburdick
Copy link
Contributor Author

@dgageot sorry for the delay, didn't see the notification. Yes, that sounds perfect. The main issue is we have developers who don't want to know how kubernetes works, so they expect it to be cleaned up. I think dev accomplishes that, and it would be nice if run did as well.

@balopat balopat added area/cleanup good first issue Good for newcomers priority/p3 agreed that this would be good to have, but no one is available at the moment. labels Aug 17, 2019
@dgageot dgageot changed the title Skaffold run with console output Add --cleanup to skaffold run Apr 30, 2020
@nkubala nkubala added this to the Icebox [P2+] milestone Sep 1, 2020
@MarlonGamez
Copy link
Contributor

This issue is quite old, but I just wanted to update it and say that we should have a fix soon for this in #4601 :)

@nkubala
Copy link
Contributor

nkubala commented Oct 19, 2020

thinking about this a bit more, I'm not sure this makes a lot of sense. apart from validating that skaffold is configured correctly, skaffold run --cleanup creates resources and immediately tears them down, which is basically a noop. it's true that developers who aren't familiar with skaffold/k8s could incur some costs by running skaffold on a project without cleaning up, but since the default value for cleanup is false, they'll have to consciously pass that flag when running skaffold run, in which case it seems reasonable that they'd know to just run skaffold dev instead.

i'm going to close this one for now, but we can reopen if a more motivating use case comes up.

@nkubala nkubala closed this as completed Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cleanup area/run good first issue Good for newcomers in progress kind/feature-request priority/p3 agreed that this would be good to have, but no one is available at the moment.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants