k3s/pkg/kubelet
k8s-merge-robot d37e6ad332 Merge pull request #24126 from Random-Liu/fix-pull-image
Automatic merge from submit-queue

Fix PullImage and add corresponding node e2e test

Fixes #24101. This is a bug introduced by #23506, since ref #23563.

The root cause of #24101 is described [here](https://github.com/kubernetes/kubernetes/issues/24101#issuecomment-208547623).

This PR
1) Fixes #24101 by decoding the messages returned during pulling image, and return error if any of the messages contains error.
2) Add the node e2e test to detect this kind of failure.
3) Get present check out of `ConformanceImage.Remove()` and `ConformanceImage.Pull()`. Because sometimes we may expect error to occur in `PullImage()` and `RemoveImage()`, but even that doesn't happen, the `Present()` check will still return error and let the test pass.

@yujuhong @freehan @liangchenye 

Also /cc @resouer, because he is doing the image related functions refactoring.
2016-04-18 07:05:44 -07:00
..
api/v1alpha1/stats Merge pull request #23948 from derekwaynecarr/memory_available 2016-04-17 06:32:36 -07:00
cadvisor Update cadvisor linux module to work with the cadvisor v0.22.2 2016-03-15 16:02:05 -07:00
client Move restclient to its own package 2016-02-29 12:05:13 -08:00
cm Fixing several (but not all) go vet errors. Most are around string formatting, or unreachable code. 2016-03-22 17:26:50 -07:00
config kubelet: send all recevied pods in one update 2016-03-17 14:24:35 -07:00
container rkt: Fix hostnetwork. 2016-04-14 18:44:09 -07:00
custommetrics Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
dockertools Merge pull request #24126 from Random-Liu/fix-pull-image 2016-04-18 07:05:44 -07:00
envvars
leaky
lifecycle rkt: Add pre-stop lifecycle hooks for rkt. 2016-04-12 13:10:51 -07:00
metrics Spread pod volume metrics calc across calc period. Metrics are calculated independently. 2016-02-22 09:54:47 -08:00
network Merge pull request #24107 from yifan-gu/load_bridge 2016-04-18 00:08:25 -07:00
pleg Fixing several (but not all) go vet errors. Most are around string formatting, or unreachable code. 2016-03-22 17:26:50 -07:00
pod Move test-only files to test-only packages 2016-03-01 09:11:32 -08:00
prober Fixing all the "composite literal uses unkeyed fields" Vet errors. 2016-03-25 15:25:09 -07:00
qos hardcode supportedComputeResources 2015-11-19 13:20:02 +08:00
rkt Merge pull request #24301 from yifan-gu/host_net 2016-04-15 13:59:27 -07:00
server Merge pull request #24047 from derekwaynecarr/reuse_summary_provider 2016-04-17 20:22:57 -07:00
status Fixing all the "composite literal uses unkeyed fields" Vet errors. 2016-03-25 15:25:09 -07:00
types Make kubelet use an arch-specific pause image depending on GOARCH 2016-03-25 23:45:59 +02:00
util Refactor version cache into kubelet util 2016-04-13 00:42:22 -04:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
container_bridge.go Improve go report card by fixing typos in comments 2016-03-04 18:30:59 -08:00
disk_manager.go Treat first-seen, non-pending pods as updates 2016-01-08 17:21:43 -08:00
disk_manager_test.go Move test-only files to test-only packages 2016-03-01 09:11:32 -08:00
doc.go
flannel_helper.go Turn flannel off by default 2015-11-25 09:43:48 +01:00
image_manager.go move minGCAge to ImageGCPolicy and make it configurable 2016-02-15 22:54:54 +08:00
image_manager_test.go Fixing all the "composite literal uses unkeyed fields" Vet errors. 2016-03-25 15:25:09 -07:00
kubelet.go Merge pull request #24302 from therc/patch-1 2016-04-16 00:00:29 -07:00
kubelet_test.go Add unit test for generateAPIPodStatus 2016-04-12 16:37:26 -07:00
networks.go rename release_1_2 to internalclientset 2016-02-05 14:02:28 -08:00
oom_watcher.go Replace runtime reference by pkg 2016-02-01 21:06:44 +08:00
oom_watcher_test.go Move test-only files to test-only packages 2016-03-01 09:11:32 -08:00
pod_workers.go Jittering periods of some kubelet's sync loops: 2016-02-09 15:22:22 +01:00
pod_workers_test.go Move test-only files to test-only packages 2016-03-01 09:11:32 -08:00
reason_cache.go Add reason cache 2016-01-30 00:25:50 -08:00
reason_cache_test.go Add unit test for reason cache 2016-01-30 00:25:50 -08:00
root_context_linux.go Bump cadvisor to fix interface stats bugs & improve performance 2015-12-21 17:07:21 +00:00
root_context_unsupported.go
runonce.go Remove GetAPIPodStatus usage 2016-02-02 23:41:55 +00:00
runonce_test.go move predicates into library (address #12744) 2016-04-11 00:57:03 +08:00
runtime.go Add Status in runtime interface and use it for runtime health check. 2016-03-04 21:26:41 -08:00
util.go Move container manager into a separate package. 2015-11-11 15:00:37 -08:00
volume_manager.go
volumes.go Merge pull request #23122 from screeley44/volmount_errors 2016-04-13 14:20:51 -07:00