[ADD] container created time

This commit is contained in:
GLYASAI 2019-07-02 18:11:13 +08:00
parent 97fcaeec7b
commit 6b9d5ee43b

View File

@ -527,7 +527,7 @@ func getContainerIDAndState(status corev1.ContainerStatus) (cid, s string) {
state := status.State
containerID := status.ContainerID
if state.Running != nil {
s = "Running"
s = fmt.Sprintf("Running(%s)", state.Running.StartedAt.Format(time.RFC3339))
}
if state.Waiting != nil {
s = "Waiting"