Merge pull request #372 from Random-Liu/add-container-log-path
Add the missing container log path in container status.
This commit is contained in:
commit
dcb22bebae
@ -74,5 +74,6 @@ func toCRIContainerStatus(container containerstore.Container, imageRef string) *
|
|||||||
Labels: meta.Config.GetLabels(),
|
Labels: meta.Config.GetLabels(),
|
||||||
Annotations: meta.Config.GetAnnotations(),
|
Annotations: meta.Config.GetAnnotations(),
|
||||||
Mounts: meta.Config.GetMounts(),
|
Mounts: meta.Config.GetMounts(),
|
||||||
|
LogPath: meta.LogPath,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,6 +54,7 @@ func getContainerStatusTestData() (*containerstore.Metadata, *containerstore.Sta
|
|||||||
SandboxID: "test-sandbox-id",
|
SandboxID: "test-sandbox-id",
|
||||||
Config: config,
|
Config: config,
|
||||||
ImageRef: "test-image-id",
|
ImageRef: "test-image-id",
|
||||||
|
LogPath: "test-log-path",
|
||||||
}
|
}
|
||||||
status := &containerstore.Status{
|
status := &containerstore.Status{
|
||||||
Pid: 1234,
|
Pid: 1234,
|
||||||
@ -76,6 +77,7 @@ func getContainerStatusTestData() (*containerstore.Metadata, *containerstore.Sta
|
|||||||
Labels: config.GetLabels(),
|
Labels: config.GetLabels(),
|
||||||
Annotations: config.GetAnnotations(),
|
Annotations: config.GetAnnotations(),
|
||||||
Mounts: config.GetMounts(),
|
Mounts: config.GetMounts(),
|
||||||
|
LogPath: "test-log-path",
|
||||||
}
|
}
|
||||||
|
|
||||||
return metadata, status, image, expected
|
return metadata, status, image, expected
|
||||||
|
Loading…
Reference in New Issue
Block a user