mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Fix the build.
This commit is contained in:
parent
12b677ad56
commit
edf3eb04e2
@ -227,6 +227,7 @@ func getPodStatus(pod *api.Pod, minions client.MinionInterface) (api.PodStatus,
|
|||||||
if pod.CurrentState.Host == "" {
|
if pod.CurrentState.Host == "" {
|
||||||
return api.PodWaiting, nil
|
return api.PodWaiting, nil
|
||||||
}
|
}
|
||||||
|
if minions != nil {
|
||||||
res, err := minions.ListMinions()
|
res, err := minions.ListMinions()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Error listing minions: %v", err)
|
glog.Errorf("Error listing minions: %v", err)
|
||||||
@ -242,6 +243,9 @@ func getPodStatus(pod *api.Pod, minions client.MinionInterface) (api.PodStatus,
|
|||||||
if !found {
|
if !found {
|
||||||
return api.PodTerminated, nil
|
return api.PodTerminated, nil
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
glog.Errorf("Unexpected missing minion interface, status may be in-accurate")
|
||||||
|
}
|
||||||
if pod.CurrentState.Info == nil {
|
if pod.CurrentState.Info == nil {
|
||||||
return api.PodWaiting, nil
|
return api.PodWaiting, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user