parent
c1613feeef
commit
2492402ba3
|
|
@ -401,7 +401,7 @@ func checkInitContainerStatus(cs v1.ContainerStatus, count, initCount int, resta
|
||||||
return "Init:" + strconv.Itoa(count) + "/" + strconv.Itoa(initCount)
|
return "Init:" + strconv.Itoa(count) + "/" + strconv.Itoa(initCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PosStatus computes pod status.
|
// PodStatus computes pod status.
|
||||||
func PodStatus(pod *v1.Pod) string {
|
func PodStatus(pod *v1.Pod) string {
|
||||||
reason := string(pod.Status.Phase)
|
reason := string(pod.Status.Phase)
|
||||||
if pod.Status.Reason != "" {
|
if pod.Status.Reason != "" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue