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

@ -23,7 +23,7 @@ const (
cniBinDir = "/opt/cni/bin/"
cgroupManager = oci.CgroupfsCgroupsManager
lockPath = "/run/crio.lock"
containerExitsDir = "/var/run/kpod/exits"
containerExitsDir = oci.ContainerExitsDir
)
// Config represents the entire set of configuration values that can be set for