Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/server/container_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@ func toCRIContainerStatus(container containerstore.Container, imageRef string) *
Labels: meta.Config.GetLabels(),
Annotations: meta.Config.GetAnnotations(),
Mounts: meta.Config.GetMounts(),
LogPath: meta.LogPath,
}
}
2 changes: 2 additions & 0 deletions pkg/server/container_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func getContainerStatusTestData() (*containerstore.Metadata, *containerstore.Sta
SandboxID: "test-sandbox-id",
Config: config,
ImageRef: "test-image-id",
LogPath: "test-log-path",
}
status := &containerstore.Status{
Pid: 1234,
Expand All @@ -76,6 +77,7 @@ func getContainerStatusTestData() (*containerstore.Metadata, *containerstore.Sta
Labels: config.GetLabels(),
Annotations: config.GetAnnotations(),
Mounts: config.GetMounts(),
LogPath: "test-log-path",
}

return metadata, status, image, expected
Expand Down