Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
04fd079d
Commit
04fd079d
authored
Jun 17, 2016
by
k8s-merge-robot
Committed by
GitHub
Jun 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #27597 from dchen1107/kubectl
Automatic merge from submit-queue No timeout for kubectl logs Fix #27588 cc/ @smarterclayton
parents
d03a5fab
8f5cadea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
kube_docker_client.go
pkg/kubelet/dockertools/kube_docker_client.go
+2
-6
No files found.
pkg/kubelet/dockertools/kube_docker_client.go
View file @
04fd079d
...
@@ -336,12 +336,8 @@ func (d *kubeDockerClient) RemoveImage(image string, opts dockertypes.ImageRemov
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment