mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 22:53:22 +00:00
v1beta3 Pod refactor
This commit is contained in:
@@ -84,10 +84,10 @@ func (p *PodCache) UpdateAllContainers() {
|
||||
return
|
||||
}
|
||||
for _, pod := range pods.Items {
|
||||
if pod.CurrentState.Host == "" {
|
||||
if pod.Status.Host == "" {
|
||||
continue
|
||||
}
|
||||
err := p.updatePodInfo(pod.CurrentState.Host, pod.Namespace, pod.Name)
|
||||
err := p.updatePodInfo(pod.Status.Host, pod.Namespace, pod.Name)
|
||||
if err != nil && err != client.ErrPodInfoNotAvailable {
|
||||
glog.Errorf("Error synchronizing container: %v", err)
|
||||
}
|
||||
|
@@ -125,7 +125,7 @@ func TestPodGetPodInfoGetter(t *testing.T) {
|
||||
func TestPodUpdateAllContainers(t *testing.T) {
|
||||
pod := api.Pod{
|
||||
ObjectMeta: api.ObjectMeta{Name: "foo", Namespace: api.NamespaceDefault},
|
||||
CurrentState: api.PodState{
|
||||
Status: api.PodStatus{
|
||||
Host: "machine",
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user