server: Add sandbox to container info
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
35ada86b04
commit
ec27f5b615
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ type ContainerInfo struct {
|
|||
Annotations map[string]string `json:"annotations"`
|
||||
LogPath string `json:"log_path"`
|
||||
Root string `json:"root"`
|
||||
Sandbox string `json:"sandbox"`
|
||||
}
|
||||
|
||||
// CrioInfo stores information about the crio daemon
|
||||
|
@ -65,6 +66,7 @@ func (s *Server) GetInfoMux() *bone.Mux {
|
|||
Annotations: ctr.Annotations(),
|
||||
Root: ctr.MountPoint(),
|
||||
LogPath: filepath.Dir(ctr.LogPath()),
|
||||
Sandbox: ctr.Sandbox(),
|
||||
}
|
||||
js, err := json.Marshal(ci)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue