Files
kubernetes/pkg
Kubernetes Submit Queue ae53b78971 Merge pull request #63268 from Random-Liu/kubelet-readlog-backward-compatible
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Make kubelet `ReadLogs` backward compatible.

`containerLogPathLabelKey` label was added in dockershim since 1.5. 121a91eb12

ContainerStatus.LogPath was added since Kubernetes 1.7. c3b52267ca

I believe it is safe to reply on this field without backward compatibility issue. And `crictl` is using it as well https://github.com/kubernetes-incubator/cri-tools/blob/master/cmd/crictl/logs.go#L88.

With this change, in the future, kubelet `ReadLogs` will be backward compatible as long as the log format is backward compatible.

@feiskyer @yujuhong @kubernetes/sig-node-pr-reviews 

Signed-off-by: Lantao Liu <lantaol@google.com>

**Release note**:

```release-note
none
```
2018-04-27 18:58:04 -07:00
..
2018-04-27 07:56:42 -04:00
2018-02-16 13:43:01 -08:00
2018-04-27 07:56:42 -04:00
2018-04-25 09:47:14 -07:00
2018-04-26 08:27:49 -04:00
2018-02-16 13:43:01 -08:00
2018-02-12 10:54:33 -05:00
2018-04-11 18:35:24 +02:00
2018-02-16 13:43:01 -08:00
2018-01-15 23:17:19 +08:00
2018-03-13 17:20:16 +08:00