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
983b478f
Commit
983b478f
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 #27042 from lukaszo/logs
Automatic merge from submit-queue Fix kubectl logs for init containers
parents
ce3d7090
07d13c1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
kubelet.go
pkg/kubelet/kubelet.go
+4
-0
No files found.
pkg/kubelet/kubelet.go
View file @
983b478f
...
@@ -2720,6 +2720,10 @@ func (kl *Kubelet) validateContainerLogStatus(podName string, podStatus *api.Pod
...
@@ -2720,6 +2720,10 @@ func (kl *Kubelet) validateContainerLogStatus(podName string, podStatus *api.Pod
var
cID
string
var
cID
string
cStatus
,
found
:=
api
.
GetContainerStatus
(
podStatus
.
ContainerStatuses
,
containerName
)
cStatus
,
found
:=
api
.
GetContainerStatus
(
podStatus
.
ContainerStatuses
,
containerName
)
// if not found, check the init containers
if
!
found
{
cStatus
,
found
=
api
.
GetContainerStatus
(
podStatus
.
InitContainerStatuses
,
containerName
)
}
if
!
found
{
if
!
found
{
return
kubecontainer
.
ContainerID
{},
fmt
.
Errorf
(
"container %q in pod %q is not available"
,
containerName
,
podName
)
return
kubecontainer
.
ContainerID
{},
fmt
.
Errorf
(
"container %q in pod %q is not available"
,
containerName
,
podName
)
}
}
...
...
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