Files
kubernetes/pkg
Kubernetes Submit Queue 284e8182a4 Merge pull request #63160 from sjenning/no-waitlogs-stopped-pod
Automatic merge from submit-queue (batch tested with PRs 63252, 63160). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

kubelet: logs: do not wait when following terminated container

Currently, a `kubectl logs -f` on a terminated container will output the logs, wait 5 seconds (`stateCheckPeriod`), then return.  The 5 seconds delay should not occur as the container is terminated and unable to generate additional log messages.

This PR puts a check at the beginning of `waitLogs()` to avoid doing the wait when the container is not running.

@derekwaynecarr @smarterclayton
2018-04-27 12:27:05 -07:00
..
2018-04-27 07:56:42 -04:00
2018-02-16 13:43:01 -08:00
2018-04-27 07:56:42 -04:00
2018-04-25 09:47:14 -07:00
2018-04-26 08:27:49 -04:00
2018-02-16 13:43:01 -08:00
2018-02-12 10:54:33 -05:00
2018-04-11 18:35:24 +02:00
2018-02-16 13:43:01 -08:00
2018-03-13 17:20:16 +08:00