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

[kaniko] Stop printing the logs on ctrl-c #3069

Merged
merged 1 commit into from
Oct 16, 2019

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Oct 16, 2019

This also ensures that the kaniko pod is deleted without waiting for the pod to terminate.

Fixes #3048

Signed-off-by: David Gageot david@gageot.net

This also ensures that the kaniko pod is deleted
without waiting for the pod to terminate.

Fixes GoogleContainerTools#3048

Signed-off-by: David Gageot <david@gageot.net>
@codecov
Copy link

codecov bot commented Oct 16, 2019

Codecov Report

Merging #3069 into master will decrease coverage by 0.05%.
The diff coverage is 0%.

Impacted Files Coverage Δ
pkg/skaffold/build/cluster/logs.go 16.66% <0%> (-3.34%) ⬇️
pkg/skaffold/build/cluster/kaniko.go 54.43% <0%> (ø) ⬆️

@prary
Copy link
Contributor

prary commented Oct 16, 2019

@dgageot thanks for fixing it I was about to ask whether its was bug or feature.

@prary
Copy link
Contributor

prary commented Oct 16, 2019

@dgageot to cancel skaffold build I need to press Cntl+C twice, it doesn't kill the process when Cntl+C is pressed once . Is this intentionally done?

@dgageot
Copy link
Contributor Author

dgageot commented Oct 16, 2019

@prary with this PR, as soon as you press Ctrl+C (once), it should stop streaming the logs and kill the pod. Before the PR, you'd have to press Ctr+c and wait until the build is finished. Or you could press two times but then it kills skaffold without giving it time to clean things up.

@balopat balopat merged commit e42e52a into GoogleContainerTools:master Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kaniko pod exist on cancelling skaffold
4 participants