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
8a8f394f
Commit
8a8f394f
authored
Nov 09, 2015
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16945 from kargakis/kubelet-fallback-to-apiserver
kubelet: Fallback to api server for pod status
parents
01fbe64a
d519741e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
kubelet.go
pkg/kubelet/kubelet.go
+4
-1
No files found.
pkg/kubelet/kubelet.go
View file @
8a8f394f
...
...
@@ -2308,7 +2308,10 @@ func (kl *Kubelet) GetKubeletContainerLogs(podFullName, containerName string, lo
}
podStatus
,
found
:=
kl
.
statusManager
.
GetPodStatus
(
podUID
)
if
!
found
{
return
fmt
.
Errorf
(
"failed to get status for pod %q in namespace %q"
,
name
,
namespace
)
// If there is no cached status, use the status from the
// apiserver. This is useful if kubelet has recently been
// restarted.
podStatus
=
pod
.
Status
}
if
err
:=
kl
.
validatePodPhase
(
&
podStatus
);
err
!=
nil
{
...
...
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