mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Merge pull request #27597 from dchen1107/kubectl
Automatic merge from submit-queue No timeout for kubectl logs Fix #27588 cc/ @smarterclayton
This commit is contained in:
commit
04fd079d09
@ -336,12 +336,8 @@ func (d *kubeDockerClient) RemoveImage(image string, opts dockertypes.ImageRemov
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (d *kubeDockerClient) Logs(id string, opts dockertypes.ContainerLogsOptions, sopts StreamOptions) error {
|
func (d *kubeDockerClient) Logs(id string, opts dockertypes.ContainerLogsOptions, sopts StreamOptions) error {
|
||||||
ctx, cancel := getDefaultContext()
|
// Don't set timeout for log calls
|
||||||
defer cancel()
|
resp, err := d.client.ContainerLogs(context.Background(), id, opts)
|
||||||
resp, err := d.client.ContainerLogs(ctx, id, opts)
|
|
||||||
if ctxErr := contextError(ctx); ctxErr != nil {
|
|
||||||
return ctxErr
|
|
||||||
}
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user