kubernetes/pkg/kubelet
Kubernetes Submit Queue eff9f75f70
Merge pull request #59297 from joelsmith/master
Automatic merge from submit-queue (batch tested with PRs 59010, 59212, 59281, 59014, 59297). 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>.

Improve error returned when fetching container logs during pod termination

**What this PR does / why we need it**:

This change better handles fetching of logs when a container is in a crash loop backoff state. In cases where it is unable to fetch the logs, it gives a helpful error message back to a user who has requested logs of a container from a terminated pod. Rather than attempting to get logs for a container using an empty container ID, it returns a useful error message.

In cases where the container runtime gets an error, log the error but don't leak it back through the API to the user.


**Which issue(s) this PR fixes**:
Fixes #59296

**Release note**:

```release-note
NONE

```
2018-02-07 15:27:49 -08:00
..
apis Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
cadvisor Make eviction manager work with CRI container runtime. 2018-01-30 17:57:46 +00:00
certificate Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
checkpoint Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
client Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
cm Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
config Merge pull request #54913 from chentao1596/kubelet-get-pods-from-path-unused-param 2018-01-24 20:13:13 -08:00
configmap Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
container Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
custommetrics Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
dockershim Merge pull request #59472 from hanxiaoshuai/fixtodo02072 2018-02-07 12:00:53 -08:00
envvars Update generated files 2017-11-09 12:14:08 +01:00
events Improve messaging on resize 2018-01-29 15:07:51 -05:00
eviction fixing array out of bound by checking initContainers instead of containers 2018-01-25 09:58:51 +01:00
gpu Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
images pkg: kubelet: do not assume anything about images names 2018-01-29 19:58:13 +01:00
kubeletconfig Kubelet flags take precedence 2018-01-29 10:07:37 -08:00
kuberuntime Merge pull request #59297 from joelsmith/master 2018-02-07 15:27:49 -08:00
leaky update BUILD files 2017-10-15 18:18:13 -07:00
lifecycle Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
metrics Adds device plugin registration count metric and allocation latency metric. 2017-11-21 13:44:10 -08:00
mountpod Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
network Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
pleg Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
pod Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
preemption Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
prober Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
qos Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
remote Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
rkt Merge pull request #56960 from islinwb/remove_unused_code_ut_pkg 2018-01-18 02:41:29 -08:00
secret Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
server Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
stats Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
status Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
sysctl Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
types Add a container type to the runtime labels 2018-01-23 13:16:36 +01:00
util Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
volumemanager Rename PVCProtection feature gate so that PV protection can share the feature gate with PVC protection 2018-01-31 20:02:01 +08:00
winstats Merge pull request #57124 from JiangtianLi/jiangtli-memfunc 2018-02-06 13:53:09 -08:00
active_deadline_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
active_deadline.go run hack/update-all 2017-06-22 11:31:03 -07:00
BUILD Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
doc.go
kubelet_getters_test.go kubelet: remove code for handling old pod/containers paths. 2017-07-20 13:10:15 +02:00
kubelet_getters.go Remove hacks added for mesos 2017-12-03 13:52:30 -05:00
kubelet_network_test.go Move DNS related kubelet codes into its own package 2017-11-15 10:56:44 -08:00
kubelet_network.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
kubelet_node_status_test.go Revert k8s.gcr.io vanity domain 2017-12-22 14:36:16 -08:00
kubelet_node_status.go Add context to all relevant cloud APIs 2018-02-06 12:49:17 -08:00
kubelet_pods_test.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
kubelet_pods_windows_test.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
kubelet_pods.go Merge pull request #59297 from joelsmith/master 2018-02-07 15:27:49 -08:00
kubelet_resources_test.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
kubelet_resources.go apimachinery: remove Scheme.DeepCopy 2017-10-06 14:59:17 +02:00
kubelet_test.go Handle fetch of container logs of error containers during pod termination 2018-02-07 12:23:56 -07:00
kubelet_volumes_test.go BlockVolumesSupport: CRI, VolumeManager and OperationExecutor changes 2017-11-20 14:10:26 -05:00
kubelet_volumes.go use GetFileType per mount.Interface to check hostpath type 2017-09-26 09:57:06 +08:00
kubelet.go Merge pull request #59276 from roboll/roboll/kubelet-fix 2018-02-07 12:00:40 -08:00
oom_watcher_test.go run root-rewrite-import-client-go-api-types 2017-06-22 11:30:59 -07:00
oom_watcher.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
OWNERS Name change: s/timstclair/tallclair/ 2017-07-10 14:05:46 -07:00
pod_container_deletor_test.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
pod_container_deletor.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
pod_workers_test.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
pod_workers.go kubelet syncPod throws specific events 2017-10-13 10:24:09 -04:00
reason_cache_test.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
reason_cache.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
runonce_test.go Share /var/lib/kubernetes on startup 2017-08-30 16:45:04 +02:00
runonce.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
runtime.go Remove setInitError. 2018-01-29 21:44:54 -08:00
util.go Fix comments and typo in the error message. 2017-07-14 19:17:12 +02:00
volume_host.go enable flexvolume on Windows 2017-12-07 06:24:20 +00:00