kubernetes/pkg/kubelet/kuberuntime
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
..
logs kubelet: logs: do not wait on following terminated container 2018-04-26 16:53:54 -05:00
BUILD Update unit tests and bazel files 2018-02-28 09:56:46 +08:00
doc.go cmd/kubelet 2016-11-23 15:53:09 -08:00
fake_kuberuntime_manager.go Fix incorrect localhost seccomp profile path 2017-11-22 02:49:23 +00:00
helpers_linux.go Setup windows container config to kubelet CRI 2018-02-28 09:56:41 +08:00
helpers_test.go Change docker/default to runtime/default 2018-04-19 10:39:53 -07:00
helpers_unsupported.go Setup windows container config to kubelet CRI 2018-02-28 09:56:41 +08:00
helpers_windows.go Setup windows container config to kubelet CRI 2018-02-28 09:56:41 +08:00
helpers.go Setup windows container config to kubelet CRI 2018-02-28 09:56:41 +08:00
instrumented_services_test.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
instrumented_services.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
kuberuntime_container_linux_test.go Lock subPath volumes 2018-03-05 09:14:44 +01:00
kuberuntime_container_linux.go Setup windows container config to kubelet CRI 2018-02-28 09:56:41 +08:00
kuberuntime_container_test.go Update unit tests and bazel files 2018-02-28 09:56:46 +08:00
kuberuntime_container_unsupported.go Setup windows container config to kubelet CRI 2018-02-28 09:56:41 +08:00
kuberuntime_container_windows.go Setup windows container config to kubelet CRI 2018-02-28 09:56:41 +08:00
kuberuntime_container.go Merge pull request #60851 from aveshagarwal/master-rhbz-1548987 2018-03-20 15:34:37 -07:00
kuberuntime_gc_test.go Merge pull request #58740 from YuxiJin-tobeyjin/add-ut-for-kuberuntime-gc 2018-04-19 12:27:19 -07:00
kuberuntime_gc.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
kuberuntime_image_test.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
kuberuntime_image.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
kuberuntime_logs.go Make CRI logs parsing to a library 2017-11-07 10:07:16 +08:00
kuberuntime_manager_test.go Lock subPath volumes 2018-03-05 09:14:44 +01:00
kuberuntime_manager.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
kuberuntime_sandbox_test.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
kuberuntime_sandbox.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
labels_test.go Add Annotations from the deviceplugin to the runtime 2018-02-03 19:53:20 +01:00
labels.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
legacy_test.go add-ut-for-legacyLogSymlink 2018-01-30 15:25:59 +08:00
legacy.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
security_context_test.go security_context_test.go(TestVerifyRunAsNonRoot): add more test cases. 2017-12-20 18:02:52 +01:00
security_context.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00