mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 20:27:46 +08:00
Merge pull request #388 from GLYASAI/podstatus
[FIX] nil pointer dereference
This commit is contained in:
commit
2ee91e7c13
@ -169,7 +169,7 @@ func describeStatus(state corev1.ContainerState, podContainer *pb.PodContainer)
|
|||||||
case state.Terminated != nil:
|
case state.Terminated != nil:
|
||||||
podContainer.State = "Terminated"
|
podContainer.State = "Terminated"
|
||||||
if state.Terminated.Reason != "" {
|
if state.Terminated.Reason != "" {
|
||||||
podContainer.Reason = state.Waiting.Reason
|
podContainer.Reason = state.Terminated.Reason
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
podContainer.State = "Waiting"
|
podContainer.State = "Waiting"
|
||||||
|
Loading…
Reference in New Issue
Block a user