BUGFIX: Invalid return codes in kpod

Set the exitsdir for kpod back to /var/run/crio... so kpod can benefit
from the container exit file.

Because 0 is the int32 blank value, kpod needs its own container state
struct with the omitempty removed so it can actually display 0 in
its default json output.

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude 2017-10-02 08:38:55 -05:00
parent 3e2ad8f10a
commit 3611f92ddf
4 changed files with 38 additions and 4 deletions

View file

@ -37,6 +37,8 @@ const (
CgroupfsCgroupsManager = "cgroupfs"
// SystemdCgroupsManager represents systemd native cgroup manager
SystemdCgroupsManager = "systemd"
// ContainerExitsDir is the location of container exit dirs
ContainerExitsDir = "/var/run/crio/exits"
)
// New creates a new Runtime with options provided