mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 19:52:42 +00:00
Changed PodInfo to be a list
This change is to make API consistent with our convention. Fixes #3622
This commit is contained in:
@@ -95,12 +95,9 @@ func (fakeKubeletClient) GetPodStatus(host, podNamespace, podID string) (api.Pod
|
||||
return r, err
|
||||
}
|
||||
r.Status.PodIP = "1.2.3.4"
|
||||
m := make(api.PodInfo)
|
||||
for k, v := range r.Status.Info {
|
||||
v.Ready = true
|
||||
m[k] = v
|
||||
for i := range r.Status.ContainerStatuses {
|
||||
r.Status.ContainerStatuses[i].Ready = true
|
||||
}
|
||||
r.Status.Info = m
|
||||
return r, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user