Make default waiting reason to be Creating (#372)

This commit is contained in:
Robbie Zhang
2018-10-10 10:40:41 -07:00
committed by GitHub
parent f2f373b71c
commit 05595835f1

View File

@@ -1505,11 +1505,16 @@ func aciContainerStateToContainerState(cs aci.ContainerState) v1.ContainerState
}
}
state := cs.State
if state == "" {
state = "Creating"
}
// Handle the case where the container is pending.
// Which should be all other aci states.
return v1.ContainerState{
Waiting: &v1.ContainerStateWaiting{
Reason: cs.State,
Reason: state,
Message: cs.DetailStatus,
},
}