mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Add support to pull log for last terminated container
This commit is contained in:
@@ -212,6 +212,9 @@ func LogLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, ct
|
||||
if opts.Follow {
|
||||
params.Add("follow", "true")
|
||||
}
|
||||
if opts.Previous {
|
||||
params.Add("previous", "true")
|
||||
}
|
||||
loc := &url.URL{
|
||||
Scheme: nodeScheme,
|
||||
Host: fmt.Sprintf("%s:%d", nodeHost, nodePort),
|
||||
|
Reference in New Issue
Block a user