Commit 98b5e9d5 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #45580 from heartlock/cri-logpath

Automatic merge from submit-queue Add LogPath for container status in CRI In order to get log path of container from CRI runtime, we need to add `LogPath` to `ContainerStatus` in CRI. @Random-Liu @feiskyer
parents ce4f010b 8e702347
......@@ -770,6 +770,8 @@ message ContainerStatus {
map<string,string> annotations = 13;
// Mounts for the container.
repeated Mount mounts = 14;
// Log path of container.
string log_path = 15;
}
message ContainerStatusResponse {
......
......@@ -430,5 +430,6 @@ func (ds *dockerService) ContainerStatus(containerID string) (*runtimeapi.Contai
Message: message,
Labels: labels,
Annotations: annotations,
LogPath: r.Config.Labels[containerLogPathLabelKey],
}, nil
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment