1
0
mirror of https://github.com/rancher/types.git synced 2025-04-27 18:25:05 +00:00

Add notready state to containers

This commit is contained in:
Darren Shepherd 2018-08-13 09:56:42 -07:00
parent eebbe77993
commit d6d559ea16

View File

@ -48,8 +48,14 @@ func checkStatus(containerStates map[string]containerState, containerStatus []ma
s.transitioning = "error"
}
case "running":
s.state = "running"
s.transitioning = "no"
ready := convert.ToBool(status["ready"])
if ready {
s.state = "running"
s.transitioning = "no"
} else {
s.state = "notready"
s.transitioning = "yes"
}
case "waiting":
s.state = "waiting"
s.transitioning = "yes"