kubernetes/pkg/kubelet/dockershim
Kubernetes Submit Queue b99a9094cc Merge pull request #34380 from Random-Liu/fix-cri-image
Automatic merge from submit-queue

CRI: Image pullable support in dockershim

For #33189.

The new test `ImageID should be set to the manifest digest (from RepoDigests) when available` introduced in #33014 is failing, because:
1) `docker-pullable://` conversion is not supported in dockershim;
2) `kuberuntime` and `dockershim` is using `ListImages with image name filter` to check whether image presents. However, `ListImages` doesn't support filter with `digest`.

This PR:
1) Change `kuberuntime.IsImagePresent` to use `runtime.ImageStatus` and `dockershim.InspectImage` instead. ***Notice an API change: `ImageStatus` should return `(nil, nil)` for non-existing image.***
2) Add `docker-pullable://` support.
3) Fix `RemoveImage` in dockershim https://github.com/kubernetes/kubernetes/pull/29316.

I've tried myself, the test can pass now.

@yujuhong @feiskyer @yifan-gu 
/cc @kubernetes/sig-node
2016-10-12 12:25:37 -07:00
..
convert_test.go * Add docker pullable support. 2016-10-12 09:21:10 -07:00
convert.go * Add docker pullable support. 2016-10-12 09:21:10 -07:00
doc.go Add a dockershim package 2016-07-27 18:30:25 -07:00
docker_container_test.go Merge pull request #34380 from Random-Liu/fix-cri-image 2016-10-12 12:25:37 -07:00
docker_container.go Merge pull request #34380 from Random-Liu/fix-cri-image 2016-10-12 12:25:37 -07:00
docker_image_test.go * Add docker pullable support. 2016-10-12 09:21:10 -07:00
docker_image.go * Add docker pullable support. 2016-10-12 09:21:10 -07:00
docker_sandbox_test.go Change dockershim to use UnixNano instead of Unix. 2016-10-11 14:50:55 -07:00
docker_sandbox.go Change dockershim to use UnixNano instead of Unix. 2016-10-11 14:50:55 -07:00
docker_service_test.go Add unit test for get security option functions. 2016-09-28 18:38:23 -07:00
docker_service.go Merge pull request #33488 from resouer/infra-image 2016-10-04 11:11:29 -07:00
helpers_test.go Add unit test for get security option functions. 2016-09-28 18:38:23 -07:00
helpers.go Implement temporary ImageStats in kuberuntime_manager, and 2016-10-03 22:56:25 -07:00
legacy.go Kubelet: fix port forward for dockershim 2016-10-01 08:06:23 +08:00
naming_test.go dockershim: utilize the Metadata in container names 2016-09-12 10:58:21 -07:00
naming.go * Add docker pullable support. 2016-10-12 09:21:10 -07:00