We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c4b652 + 27cccad commit 116f06eCopy full SHA for 116f06e
pkg/kubelet/kubelet_getters.go
@@ -162,7 +162,15 @@ func (kl *Kubelet) getPodResourcesDir() string {
162
// GetPods returns all pods bound to the kubelet and their spec, and the mirror
163
// pods.
164
func (kl *Kubelet) GetPods() []*v1.Pod {
165
- return kl.podManager.GetPods()
+ pods := kl.podManager.GetPods()
166
+ // a kubelet running without apiserver requires an additional
167
+ // update of the static pod status. See #57106
168
+ for _, p := range pods {
169
+ if status, ok := kl.statusManager.GetPodStatus(p.UID); ok {
170
+ p.Status = status
171
+ }
172
173
+ return pods
174
}
175
176
// GetRunningPods returns all pods running on kubelet from looking at the
0 commit comments