mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
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:
parent
4c3ac326fa
commit
2335bfa351
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user