mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 22:20:51 +00:00
Refactor PodCondition to PodPhase
This commit is contained in:
@@ -46,10 +46,10 @@ func waitForPodRunning(c *client.Client, id string) {
|
||||
glog.Warningf("Get pod failed: %v", err)
|
||||
continue
|
||||
}
|
||||
if pod.Status.Condition == api.PodRunning {
|
||||
if pod.Status.Phase == api.PodRunning {
|
||||
break
|
||||
}
|
||||
glog.Infof("Waiting for pod status to be running (%s)", pod.Status.Condition)
|
||||
glog.Infof("Waiting for pod status to be running (%s)", pod.Status.Phase)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user