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:
parent
3e2ad8f10a
commit
3611f92ddf
4 changed files with 38 additions and 4 deletions
|
@ -184,7 +184,7 @@ func New(config *Config) (*Server, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
config.ContainerExitsDir = "/var/run/crio/exits"
|
||||
config.ContainerExitsDir = oci.ContainerExitsDir
|
||||
|
||||
// This is used to monitor container exits using inotify
|
||||
if err := os.MkdirAll(config.ContainerExitsDir, 0755); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue