Skip to content

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

Merged
balopat merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:stop-kaniko-logs
Oct 16, 2019
Merged

[kaniko] Stop printing the logs on ctrl-c#3069
balopat merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:stop-kaniko-logs

Conversation

@dgageot
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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