k3s/pkg/kubelet/images
Antonio Murdaca 520b99cdd5
pkg: kubelet: do not assume anything about images names
This patch fixes a regression introduced by
https://github.com/kubernetes/kubernetes/pull/51751 in the CRI
interface.
That commit actually changed a unit test where we were previously *not*
assuming anything about an image name.
Before that commit, if you send the image "busybox" through the CRI,
the container runtime receives "busybox". After that patch the
container runtime gets "docker.io/library/busybox".
While that may be correct for the internal kube dockershim, in the CRI
we must not assume anything about image names. The ImageSpec is not
providing any spec around the image so the container runtime should
just get the raw image name from the pod spec. Every container runtime
can handle image names the way it wants. The "docker.io" namespace is
not at all "standard", CRI-O is not following what the docker UI say
since that's the docker UI. We should not focus the CRI on wrong UI
design, especially around a default namespace.

ImageSpec is not standardized yet:
https://github.com/kubernetes/kubernetes/issues/46255 and
https://github.com/kubernetes/kubernetes/issues/7203

This is something which should land in 1.9 as well since the regression
is from 1.8.

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2018-01-29 19:58:13 +01:00
..
BUILD Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
doc.go Wrapping image pullers inside ImageManager 2016-07-20 09:47:11 -07:00
helpers.go run hack/update-all 2017-06-22 11:31:03 -07:00
image_gc_manager.go kubelet: imagegc: exempt sandbox image 2018-01-17 15:10:44 -06:00
image_gc_manager_test.go kubelet: imagegc: exempt sandbox image 2018-01-17 15:10:44 -06:00
image_manager.go pkg: kubelet: do not assume anything about images names 2018-01-29 19:58:13 +01:00
image_manager_test.go pkg: kubelet: do not assume anything about images names 2018-01-29 19:58:13 +01:00
puller.go run hack/update-all 2017-06-22 11:31:03 -07:00
types.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00