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
d0d75ce6
Commit
d0d75ce6
authored
Apr 27, 2018
by
Lantao Liu
Committed by
Pengfei Ni
Jul 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make kubelet `ReadLogs` backward compatible.
Signed-off-by:
Lantao Liu
<
lantaol@google.com
>
parent
95eea8a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
kuberuntime_container.go
pkg/kubelet/kuberuntime/kuberuntime_container.go
+1
-4
No files found.
pkg/kubelet/kuberuntime/kuberuntime_container.go
View file @
d0d75ce6
...
@@ -730,10 +730,7 @@ func (m *kubeGenericRuntimeManager) GetContainerLogs(pod *v1.Pod, containerID ku
...
@@ -730,10 +730,7 @@ func (m *kubeGenericRuntimeManager) GetContainerLogs(pod *v1.Pod, containerID ku
glog
.
V
(
4
)
.
Infof
(
"failed to get container status for %v: %v"
,
containerID
.
String
(),
err
)
glog
.
V
(
4
)
.
Infof
(
"failed to get container status for %v: %v"
,
containerID
.
String
(),
err
)
return
fmt
.
Errorf
(
"Unable to retrieve container logs for %v"
,
containerID
.
String
())
return
fmt
.
Errorf
(
"Unable to retrieve container logs for %v"
,
containerID
.
String
())
}
}
labeledInfo
:=
getContainerInfoFromLabels
(
status
.
Labels
)
return
m
.
ReadLogs
(
status
.
GetLogPath
(),
containerID
.
ID
,
logOptions
,
stdout
,
stderr
)
annotatedInfo
:=
getContainerInfoFromAnnotations
(
status
.
Annotations
)
path
:=
buildFullContainerLogsPath
(
pod
.
UID
,
labeledInfo
.
ContainerName
,
annotatedInfo
.
RestartCount
)
return
m
.
ReadLogs
(
path
,
containerID
.
ID
,
logOptions
,
stdout
,
stderr
)
}
}
// GetExec gets the endpoint the runtime will serve the exec request from.
// GetExec gets the endpoint the runtime will serve the exec request from.
...
...
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