mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 19:57:42 +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:
|
||||
podContainer.State = "Terminated"
|
||||
if state.Terminated.Reason != "" {
|
||||
podContainer.Reason = state.Waiting.Reason
|
||||
podContainer.Reason = state.Terminated.Reason
|
||||
}
|
||||
default:
|
||||
podContainer.State = "Waiting"
|
||||
|
Loading…
Reference in New Issue
Block a user