Merge pull request #2099 from littlejawa/issue_crio_ctr_6

stable-2.1 | runtime: report finish time in containers stats
This commit is contained in:
Chelsea Mafrica 2021-06-23 23:27:49 -07:00 committed by GitHub
commit 7369ee8de3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -624,6 +624,7 @@ func (s *service) State(ctx context.Context, r *taskAPI.StateRequest) (_ *taskAP
Stderr: c.stderr, Stderr: c.stderr,
Terminal: c.terminal, Terminal: c.terminal,
ExitStatus: c.exit, ExitStatus: c.exit,
ExitedAt: c.exitTime,
}, nil }, nil
} }
@ -643,6 +644,7 @@ func (s *service) State(ctx context.Context, r *taskAPI.StateRequest) (_ *taskAP
Stderr: execs.tty.stderr, Stderr: execs.tty.stderr,
Terminal: execs.tty.terminal, Terminal: execs.tty.terminal,
ExitStatus: uint32(execs.exitCode), ExitStatus: uint32(execs.exitCode),
ExitedAt: execs.exitTime,
}, nil }, nil
} }