Allow Docker container logs to be tail'd and follow'd

Relaxes the very very ancient restriction we put in place to keep the
original API surface area PR small. Better to be consistent with actual
expected use of tail.
This commit is contained in:
Clayton Coleman 2015-10-29 17:12:16 -04:00
parent 4c3ac326fa
commit 2335bfa351

View File

@ -290,7 +290,7 @@ func (dm *DockerManager) GetContainerLogs(pod *api.Pod, containerID kubecontaine
RawTerminal: false,
}
if !logOptions.Follow && logOptions.TailLines != nil {
if logOptions.TailLines != nil {
opts.Tail = strconv.FormatInt(*logOptions.TailLines, 10)
}