cri-o/server
Antonio Murdaca 22d055869d
server: container_status: return image name if available
If we create a container using the image ID like
771cd5947d5ea4bf8e8f4900dd357dbb67e7b16486c270f8274087d182d457c6, then
a call to container_status will return that same ID for the "Image"
field in ContainerStatusResponse.

This patch matches dockershim behavior and return the first tagged name
if available from the image store.

This is also needed to fix a failure in k8s e2d tests.

Reference:
https://github.com/kubernetes/kubernetes/pull/39298/files#diff-c7dd39479fd733354254e70845075db5R369
Reference:
67a5bf8454/test/e2e/framework/util.go (L1941)

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-05-22 16:37:46 +02:00
..
apparmor Rename ocid to crio. 2017-05-12 09:56:06 -04:00
seccomp Update runtime-spec to v1.0.0.rc5 2017-04-12 19:15:53 -07:00
config.go Rename ocid to crio. 2017-05-12 09:56:06 -04:00
container.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
container_attach.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_create.go server: store containers state on disk 2017-05-18 21:19:50 +02:00
container_exec.go Fix terminal resize handling so kubectl exec -i -t sh works 2017-04-24 18:44:49 +02:00
container_execsync.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
container_list.go server: remove Update calls 2017-04-27 14:01:37 +02:00
container_portforward.go Add support for port forwarding 2017-04-26 13:58:48 -07:00
container_remove.go server: honor container stop timeout from CRI 2017-05-15 22:56:31 +02:00
container_start.go server: store containers state on disk 2017-05-18 21:19:50 +02:00
container_status.go server: container_status: return image name if available 2017-05-22 16:37:46 +02:00
container_stop.go server: store containers state on disk 2017-05-18 21:19:50 +02:00
container_updateruntimeconfig.go server: mock UpdateRuntimeConfig 2016-12-15 14:31:42 +01:00
image_list.go server: readable fields 2017-04-20 08:22:50 -04:00
image_pull.go server: readable fields 2017-04-20 08:22:50 -04:00
image_remove.go server: readable fields 2017-04-20 08:22:50 -04:00
image_status.go vendor: upgrade containers/storage 2017-05-17 22:18:07 +02:00
runtime_status.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
sandbox.go server: store creation in containers 2017-05-18 18:49:54 +02:00
sandbox_list.go server: ignore runc not exist errors 2017-05-18 21:19:50 +02:00
sandbox_remove.go server: move StopAllSandboxes in sandbox_stop.go 2017-05-18 21:19:52 +02:00
sandbox_run.go server: store containers state on disk 2017-05-18 21:19:50 +02:00
sandbox_status.go server: ignore runc not exist errors 2017-05-18 21:19:50 +02:00
sandbox_stop.go server: sandbox_stop: ignore not found sandboxes 2017-05-22 16:37:39 +02:00
server.go add a note on server shutdown... 2017-05-18 21:19:52 +02:00
utils.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
version.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00